Fix post-deploy mode

Ansible changed the default mode for files, even in stable
releases. [1]

This change restores the previous default (with the common
umask).

[1] https://github.com/ansible/ansible/pull/70221

Change-Id: I0f81214b4f95fe8a378844745ebc77f3c43027ab
Closes-Bug: #1891145
This commit is contained in:
Radosław Piliszek 2020-08-11 12:12:10 +02:00
parent 352f91ac10
commit 87efdce24b
2 changed files with 6 additions and 0 deletions

@ -7,4 +7,5 @@
template:
src: "roles/common/templates/admin-openrc.sh.j2"
dest: "{{ node_config }}/admin-openrc.sh"
mode: 0644
run_once: True

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes ``post-deploy`` action with new Ansible releases setting a wrong mode
on the created file. `LP#1891145 <https://launchpad.net/bugs/1891145>`__