From 137f79e49e5bfdd0695755ea273c334ef43ebfd7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= <radoslaw.piliszek@gmail.com>
Date: Wed, 12 Aug 2020 09:00:52 +0000
Subject: [PATCH] Revert "Fix post-deploy mode"

This fix was premature as it completely ignores
the previously-respected umask.

Let's discuss a proper fix and revert this one
since CI is fixed elsewhere [1].

[1] https://review.opendev.org/743502

This reverts commit 87efdce24bc802777d4da58f9f63c8d0838e7120.

Change-Id: If38adbf124e793574a21ae986f9ee146d587f820
---
 ansible/post-deploy.yml                              | 1 -
 releasenotes/notes/bug-1891145-95e3943e8e030962.yaml | 5 -----
 2 files changed, 6 deletions(-)
 delete mode 100644 releasenotes/notes/bug-1891145-95e3943e8e030962.yaml

diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml
index 8112d9fd3d..f0bc32c882 100644
--- a/ansible/post-deploy.yml
+++ b/ansible/post-deploy.yml
@@ -7,5 +7,4 @@
       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
deleted file mode 100644
index e9fce1415c..0000000000
--- a/releasenotes/notes/bug-1891145-95e3943e8e030962.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-fixes:
-  - |
-    Fixes ``post-deploy`` action with new Ansible releases setting a wrong mode
-    on the created file. `LP#1891145 <https://launchpad.net/bugs/1891145>`__