solved.. I missed to specify the owner for the new file.. $ cat roles/monit_install/tasks/main.yml | grep -v '^$\|^#' - name: copy configuration file template: owner: root group: root mode: 0600 dest: /etc/monitrc src: monitrc.j2 validate: /usr/bin/monit -c %s -t
$ ansible-playbook monit_install.yml -b --ask-become-pass SUDO password: PLAY [server2] **************************************************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] ******************************************************************************************************************************************************************************************************************************************************** ok: [server2] TASK [monit_install : copy configuration file] ******************************************************************************************************************************************************************************************************************************** changed: [server2] PLAY RECAP ******************************************************************************************************************************************************************************************************************************************************************** server2 : ok=2 changed=1 unreachable=0 failed=0 what a gap :((( Regards Luca -- 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/1d95bdb2-7975-4a7a-8ce6-c61d19a88253%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
