From 87efdce24bc802777d4da58f9f63c8d0838e7120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Tue, 11 Aug 2020 12:12:10 +0200 Subject: [PATCH] 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 --- ansible/post-deploy.yml | 1 + releasenotes/notes/bug-1891145-95e3943e8e030962.yaml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 releasenotes/notes/bug-1891145-95e3943e8e030962.yaml diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index f0bc32c882..8112d9fd3d 100644 --- a/ansible/post-deploy.yml +++ b/ansible/post-deploy.yml @@ -7,4 +7,5 @@ template: src: "roles/common/templates/admin-openrc.sh.j2" dest: "{{ node_config }}/admin-openrc.sh" + mode: 0644 run_once: True diff --git a/releasenotes/notes/bug-1891145-95e3943e8e030962.yaml b/releasenotes/notes/bug-1891145-95e3943e8e030962.yaml new file mode 100644 index 0000000000..e9fce1415c --- /dev/null +++ b/releasenotes/notes/bug-1891145-95e3943e8e030962.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes ``post-deploy`` action with new Ansible releases setting a wrong mode + on the created file. `LP#1891145 `__