Solved it via running the command as "fire and forget" with async and pool,
using a bash command in the background. Then modifying the ansible_ssh_host
to the new IP address, and waiting for it port 22 to come up on that host.
- name: Grab the network interface that the old IP is using and
Thank you very much for clarification Kai
You're awesome <3
On Thursday, December 29, 2016 at 3:53:04 AM UTC-8, Kai Stian Olstad wrote:
>
> On 28. des. 2016 03:38, Cann wrote:
> > I am not sure what is not clear about my question. As title indicates:
> "How
> > to use ignore_errors with
Okay, we've ran out of ip addresses, and got a larger subnet from our ip. I
am currently in the process of switching them over, and decided it would be
nice to do this with ansible, but I have ran into a little snag.
Currently I have:
- shell: "ifconfig | grep -B1 {{ old_address }}| grep
Ansible version: 2.1.2.0
My task:
- name: "Managing groups with gid set" become: true group:name: "{{
item.value.name }}"state: "{{ item.value.state | default('present')}}"
system: "{{ item.value.system | default('no')}}"gid: "{{ item.value.gid }}"
with_dict: "{{ ssh_groups