Difference between revisions of "Ansible General Commands"

From rbachwiki
Jump to navigation Jump to search
(Created page with "* list content of hosts file ansible-inventory --list")
 
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

Revision as of 14:38, 24 June 2022

  • list content of hosts file
ansible-inventory --list
  • Run playbook
ansible-playbook playbookname.yml --private-key ~/.ssh/keyname