I have the following, which works, but it just got me wondering if this can
be concatenated or be written in a more graceful way? By that, I don't mean
*getent:
database=passwd, key=nagios*
- name: Check for nagios installation
getent:
database: passwd
key: nagios
ignore_errors: yes
register: nagios_user
- name: Copy nrpe.cfg to clients when installed
copy:
src: /etc/ansible/masterfiles/nagios/nrpe.cfg
dest: /usr/local/nagios/etc/
owner: nagios
group: nagios
mode: 0644
force: yes
when: nagios_user|succeeded
notify: reload xinetd
--
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/4bbc36d6-43f3-42fa-888a-19f7a8200c26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.