How to properly structure ansible options?
I am writing an ansible playbook for installation of consul and nomad. Each of them can be either a client, or a server, or not installed at all.
Node can not be reached with ansible after changes of groups in inventory
I had an inventory.yaml like that:
numeric sudo password in ansible_become_pass does not work
I use this command:
Error while running ansible adhoc command
I am learning Ansible and started using Adhoc command first. I created a custom inventory file as below.
Picking variable from host and group vars
I want to specify different key for different host. but there are host in group production
. For example, I have host-vars inventory file and group-vars inventory file.
picking varible from host and group vars
I want to specify different key for different host. but there are host in group production
. for eg. i have host-vars inventory file and group-vars inventory file.
inventoy/hostvars/host-01
Run ansible-playbook with multiple groups restriction
I’m trying to run a database.yaml
playbook that has the databases group as hosts, which contains all the db-* hosts from the inventory.
Ansible | lineinfile | insertafter using regex in yml file
i am trying to write an extra line into my /etc/ansible/hosts file using an ansible playbook. Sadly I can not find an regex that matches my problem.
Ansible vmware dynamic inventory groups with multiple conditions
i’ve got a dynamic vmware inventory in Ansible:
No host matched for localhost when running ansible playbook with aws_ec2 dynamic inventory
I’m running an ansible playbook which calls an initial task that runs on localhost to add known_hosts ssh keys for all hosts returned by the inventory. This playbook runs fine if I use an explicit inventory list.