Difference between revisions of "Ansible General Commands"
Jump to navigation
Jump to search
(Created page with "* list content of hosts file ansible-inventory --list") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
* list content of hosts file | * list content of hosts file | ||
ansible-inventory --list | 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 | |||
* Encript Ansible playbook | |||
ansible-vault | |||
* Shows or modifies ansible configuration | |||
ansible-config | |||
* Connection command for the remote clients | |||
ansible-connection | |||
* Manuals | |||
ansible-doc -l | |||
* Command to manage Ansible roles in shared repositories, the default of which is Ansible Galaxy https://galaxy.ansible.com | |||
=[[Ansible| Ansible Menu]]= | |||
[[Category:Ansible]] |
Latest revision as of 21:01, 27 July 2022
- 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
- Encript Ansible playbook
ansible-vault
- Shows or modifies ansible configuration
ansible-config
- Connection command for the remote clients
ansible-connection
- Manuals
ansible-doc -l
- Command to manage Ansible roles in shared repositories, the default of which is Ansible Galaxy https://galaxy.ansible.com