Difference between revisions of "Ansible"

From Athenaeum
Jump to: navigation, search
(Run)
(Run)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
=Run=
 
=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"
 
* ansible-playbook -i ./inventory-prod02.yaml ./main.yaml -l RPTSVC_Group01 --start-at-task "Start the Reporting Service container"
* ansible -i ./inventory.yaml eventhorizon -m setup --ask-pass
+
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

Latest revision as of 16:51, 4 March 2020

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