Ansible

From Athenaeum
Revision as of 16:51, 4 March 2020 by James8562 (talk | contribs) (Run)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Run

Start at a particular point in the playbook:

  • ansible-playbook -i ./inventory-prod02.yaml ./main.yaml -l RPTSVC_Group01 --start-at-task "Start the Reporting Service container"

Get setup facts from random host:

  • ansible all -i 'appzone01s01.dev.tsafe.systems,' -m setup -a 'filter=ansible_distribution_version' -u root --ask-pass

Dump the inventory:

  • ansible-inventory -i ./inventory.yaml --list