Subject: Re: [ansible-project] double with_items and loops

  John Harmon 2018-01-25, 22:31
  John Harmon 2018-01-25, 22:33
  John Harmon 2018-01-25, 22:45
It ultimately does what I want, but changes stuff every time.  I can't
figure out the logic that is doing that.  Any ideas?
TASK [dns_update : Add DNS entries to ifcfg-* files if missing]
**************************************************************************************************************************************************************************
ok: [ansible-oel7] => (item=[u'ifcfg-eth0', u'^DNS1.*', u'DNS1=10.1.1.10'])
ok: [ansible-oel6] => (item=[u'ifcfg-eth0', u'^DNS1.*', u'DNS1=10.1.1.10'])
ok: [ansible-rhel6] => (item=[u'ifcfg-eth0', u'^DNS1.*', u'DNS1=10.1.1.10'])
ok: [ansible-rhel7] => (item=[u'ifcfg-eth0', u'^DNS1.*', u'DNS1=10.1.1.10'])
changed: [ansible-rhel6] => (item=[u'ifcfg-eth0', u'^DNS1.*', u
'DNS2=10.1.1.11'])
changed: [ansible-oel7] => (item=[u'ifcfg-eth0', u'^DNS1.*', u
'DNS2=10.1.1.11'])
changed: [ansible-oel6] => (item=[u'ifcfg-eth0', u'^DNS1.*', u
'DNS2=10.1.1.11'])
changed: [ansible-rhel7] => (item=[u'ifcfg-eth0', u'^DNS1.*', u
'DNS2=10.1.1.11'])
changed: [ansible-oel7] => (item=[u'ifcfg-eth0', u'^DNS2.*', u
'DNS1=10.1.1.10'])
changed: [ansible-rhel6] => (item=[u'ifcfg-eth0', u'^DNS2.*', u
'DNS1=10.1.1.10'])
changed: [ansible-oel6] => (item=[u'ifcfg-eth0', u'^DNS2.*', u
'DNS1=10.1.1.10'])
changed: [ansible-rhel7] => (item=[u'ifcfg-eth0', u'^DNS2.*', u
'DNS1=10.1.1.10'])
ok: [ansible-oel7] => (item=[u'ifcfg-eth0', u'^DNS2.*', u'DNS2=10.1.1.11'])
ok: [ansible-oel6] => (item=[u'ifcfg-eth0', u'^DNS2.*', u'DNS2=10.1.1.11'])
ok: [ansible-rhel6] => (item=[u'ifcfg-eth0', u'^DNS2.*', u'DNS2=10.1.1.11'])
ok: [ansible-rhel7] => (item=[u'ifcfg-eth0', u'^DNS2.*', u'DNS2=10.1.1.11'])
--
To post to this group, send email to [EMAIL PROTECTED].
  Kai Stian Olstad 2018-01-25, 19:26
  John Harmon 2018-01-25, 17:38
  Malcolm Hussain-Gambles 2018-01-27, 19:34
  Malcolm Hussain-Gambles 2018-01-26, 20:18
  John Harmon 2018-01-26, 20:22
  John Harmon 2018-01-26, 20:23
  John Harmon 2018-01-26, 20:42
  Kai Stian Olstad 2018-01-26, 07:34
  Kai Stian Olstad 2018-01-26, 17:32
  John Harmon 2018-01-26, 16:43
  John Harmon 2018-01-25, 23:54