From 6c94f7e7f3fb84917021a4c2654ac6779607a84f Mon Sep 17 00:00:00 2001 From: John Fulton Date: Thu, 5 Jan 2023 07:45:24 -0500 Subject: [PATCH] Do not sudo stat Ceph spec file on Ansible host When the "Stat spec file on ansible host" task is run from an Ansible runner container, the task fails with: "module_stderr": "/bin/sh: line 1: sudo: command not found\n", This patch removes "become: true" so that the task no longer fails under these conditions. It shouldn't be necessary to use sudo to stat this file on a standard undercloud or in an Ansible runner container. There are other tasks which use become and other tasks which delegate to localhost, but this task in the tripleo_cephadm role which uses both. Change-Id: I1aab213206d32ffae2f9fea92970a4bf13801f16 --- tripleo_ansible/roles/tripleo_cephadm/tasks/pre.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/tripleo_ansible/roles/tripleo_cephadm/tasks/pre.yaml b/tripleo_ansible/roles/tripleo_cephadm/tasks/pre.yaml index 098d8af71..197f11488 100644 --- a/tripleo_ansible/roles/tripleo_cephadm/tasks/pre.yaml +++ b/tripleo_ansible/roles/tripleo_cephadm/tasks/pre.yaml @@ -99,7 +99,6 @@ path: "{{ tripleo_cephadm_spec_ansible_host }}" register: tripleo_cephadm_spec_stat_host delegate_to: localhost - become: true - name: push tripleo_cephadm_spec to bootstrap node if spec file exsits copy: