How do I use my static and dynamic inventory files together in an ansible playbook?

0 votes
How do I use my static and dynamic inventory files together in an ansible playbook?
Feb 9 in Ansible by Kiara
128 views

1 answer to this question.

0 votes

Add both your static and dynamic inventories to the folder and you can run playbooks targeting both as same time.

Have a look at this example, explained pretty well.

answered Feb 9 by Monish

Related Questions In Ansible

0 votes
1 answer

How do I execute a shell script and then use the result in ansible

This can work out for you: - name: ...READ MORE

answered Apr 11, 2018 in Ansible by shubham
• 6,870 points
463 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I add ssh authorized keys in ansible playbook?

Hey @kailash use the authorized_key plugin that ...READ MORE

answered Feb 11 in Ansible by Kyra
90 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How do I backup my ansible playbooks?

In addition to the install.yml file included with your setup.sh setup ...READ MORE

answered Feb 4 in Ansible by Anushri
17 views
0 votes
1 answer

How do I manage my config snapshots? - Ansible

Hey @Pandora, You can use the aci_config_snapshot module ...READ MORE

answered Feb 11 in Ansible by Kyra
24 views