sudo apt update
sudo apt install ansible
sudo apt install sshpass
hosts
[ubuntu]
server-01
server-02
192.168.0.100
192.168.0.1002
command with module
ansible -i ./inventory/hosts ubuntu -m ping --user someuser --ask-pass
command with playbook
ansible-playbook ./playbooks/apt.yml --user someuser --ask-pass --ask-become-pass -i ./inventory/hosts