Ansible General Commands
Jump to navigation
Jump to search
- list content of hosts file
ansible-inventory --list
- Run playbook
ansible-playbook playbookname.yml --private-key ~/.ssh/keyname
- Test connection to server
ansible all -u root -m ping --private-key ~/.ssh/ansible