Hi all,
I'm using Ansible for configuration management.
Does Ansible have any function to detect overlaping of file modification in
"copy" / "template" tasks?
I want to get some messages or warnings to know overlaping in the following
situation.
Example
--------------
The main playbook uses role1 and role2 like the following::
site.yml
roles/role1/tasks/main.yml ... (1)
roles/role2/tasks/main.yml ... (2)
Role1 and role2 is used in the playbook.
And, if the same file is modified twice by both of role1 and role2,
I want to know this situation from any information.
Example of site.yml::
- hosts: server
roles:
- role1
- role2
Example of main.yml (1)::
-name: role1
copy: src=tmp_role1.conf dest=/tmp/tmp.conf
Example of main.yml (2)::
- name: role2
copy: src=tmp_roles2.conf dest=/tmp/tmp.conf
In the above examples, /tmp/tmp.conf is modified twice.
Thanks,
Masaru
--
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/92730cbf-9a25-4732-8131-31bee7cb6b5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.