My little playbook:
- hosts: all
become: true
become_user: root
become_method: sudo
tasks:
- name: Update McAfee virus definitions
shell: /opt/McAfee/LinuxShield/bin/nails task --run 1
register: result
- name: Update McAfee virus definitions 2
shell: /opt/NAI/LinuxShield/bin/nails task --run 1
when: result|failed
I did this because one of my hosts doesn't have nails installed where the
rest do. Why? Dunno. But when I run this, all of the hosts that have the
first command run successfully are skipped, as I expected, but the one
isn't mentioned at all, other than the failure in the first case. That one
host was completely skipped for the second command. Any ideas why?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1f01a6c9-c8b3-4d61-94c2-ecb25ad37e83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.