Collection ansible roles and playbooks
Debian like
apt -y install ansible sshpass
Centos
yum -y install epel-release
yum -y install ansible sshpass
Fedora
dnf -y install ansible sshpass
Show inventory
ansible-inventory -i inventories/test --list
For example tests inventory
Install key on remote hosts (root)
ansible-playbook playbooks/upload-sshkey.yml -i inventories/test -e username="root" -u root -k
Special user sa (Ubuntu)
ansible-playbook playbooks/upload-sshkey.yml -i inventories/test -e username="sa" -l ubuntu.test.lab -u sa -k -b -K
Check alive hosts
ansible -i inventories/test -m ping all -u root