Set mode for copy operation

We need to set mode for copy operation otherwise ansible-2.9.12
can lead to too restrictive default permissions[1].

Setting mode for copy operations handles the warning.

[1.] https://github.com/ansible/ansible/issues/67794

Change-Id: Ieae36a1d85a7da84ee2cd982a20dcabe9e65511f
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
This commit is contained in:
Chandan Kumar (raukadah) 2020-08-19 13:14:23 +05:30
parent 0546a91d6a
commit 3e590ab572
2 changed files with 3 additions and 0 deletions

View File

@ -158,6 +158,7 @@
{% endif %}
{% endfor %}
dest: "{{ tempest_test_whitelist_file_path }}"
mode: "0644"
when:
- tempest_test_whitelist | length > 0
@ -174,5 +175,6 @@
{% endif %}
{% endfor %}
dest: "{{ tempest_test_blacklist_file_path }}"
mode: "0644"
when:
- tempest_test_blacklist | length > 0

View File

@ -27,6 +27,7 @@
copy:
content: "{{ tempest_tempestconf_profile | combine(tempest_tempestconf_profile_extras) | to_nice_yaml }}"
dest: "{{ tempest_workspace }}/etc/profile.yaml"
mode: "0644"
- name: Executing python-tempestconf
shell: |