aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Szumski <will@stackhpc.com>2025-05-14 15:09:33 +0100
committerWill Szumski <will@stackhpc.com>2025-05-14 15:09:33 +0100
commit2dd7be7bd144fc6213b91f6fd5a391b4a2425802 (patch)
tree969437e50bcc6c373849967bb14ecba8a76d1591
parent35f75a5c0cb71ce32d8739b7c1d90c0a8ebd7902 (diff)
downloadkolla-ansible-2dd7be7bd144fc6213b91f6fd5a391b4a2425802.tar.gz
kolla-ansible-2dd7be7bd144fc6213b91f6fd5a391b4a2425802.zip
Fix unconditional use of become in post-deploy
This must have snuck in after we landed the linked related change. Related-ID: Ied5ef4e1e3c9346342962d44de26702522b06b86 Related-Bug: #2098887 Change-Id: I9b0d67ba443a680f0eaa4f2ad5bb7137faf396de
-rw-r--r--ansible/post-deploy.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml
index 019992193..acc78cd6f 100644
--- a/ansible/post-deploy.yml
+++ b/ansible/post-deploy.yml
@@ -55,7 +55,7 @@
mode: 0600
- name: Template out public-openrc-system.sh
- become: true
+ become: "{{ needs_root }}"
template:
src: "roles/common/templates/public-openrc-system.sh.j2"
dest: "{{ node_config }}/public-openrc-system.sh"