Skip to main content

Ansible commands

Ansible with inventory file

ansible-playbook -K -i 00_inventory.yml <inventory_group> 01_playbooks/<playbook>
  • K => ask for sudo password
  • i => inventory file
  • <inventory_group> => inventory group

Ansible with rudder inventory plugins

ansible-playbook -K -i rudder.py <rudder_group> 01_playbooks/<playbook>
  • K => ask for sudo password
  • i => inventory file
  • <rudder_group> => rudder group