Re: [ansible-project] {"changed": false, "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_default_ipv4'"}

2018-11-18 Thread Tom K.
So I've made two more empty hosts and called them *mysql05* and *mysql06* and tested on all 3 (this way I don't blow away my working cluster). Now I removed the limit flag and run it like this: # ansible-playbook -i infra main.yml --tags "mysql" -v Everything worked well and the */etc/my.cnf*

[ansible-project] How to force Ansible to update PATH?

2018-11-18 Thread Dmitriy Panteleyev
I am installing snapd via Ansible on *buntu. After installation, snap binaries are linked from `/snap/bin`. When snapd is installed, it adds a script to `/etc/profile.d/` that basically add /snap/bin to bash PATH. My problem is that I cannot find a way to force Ansible to refresh the path, so

Re: [ansible-project] Parallel execution of tasks in playbook

2018-11-18 Thread Saravanan
Thanks a bunch Jon. It helps a lot. On Friday, 16 November 2018 03:35:26 UTC-5, J Hawkesworth wrote: > > Hello, > > Ansible will run tasks in parallel against groups of hosts, so I suggest > you convert your > > apache_sever_list.yaml > > file into ansible inventory format > > and put all the ho

Re: [ansible-project] ssh to remote node and run CLI

2018-11-18 Thread vinoth kumar
Hi Abdul, You could remove the hosts from inventory.ym , else directly mention it in default hosts inventory file Br Vinoth On Wed, 14 Nov 2018 at 8:26 AM, Abdul Rahim wrote: > Thans Brian , > > It fails with following > > root@ansibile-launch:~/ansible/tasks/add-compute# ansible-playbook -i >

Re: [ansible-project] Nested loop with second loop depending on first item

2018-11-18 Thread 'J Hawkesworth' via Ansible Project
Hmm, would the cartesian lookup help you? https://docs.ansible.com/ansible/latest/plugins/lookup/cartesian.html On Wednesday, November 14, 2018 at 8:05:32 AM UTC, saisum...@gmail.com wrote: > > Hi I have seen ur resolutions in this page i. > > I am also having the same issue with nested loops .