From 78cf9585b78a5e3e9b771664838f40afc9702686 Mon Sep 17 00:00:00 2001 From: Michal Arbet <michal.arbet@ultimum.io> Date: Mon, 30 Jan 2023 21:15:47 +0100 Subject: [PATCH] Trivial: Add connection: local for keystone-fernet cron generate task This patch add connection local for above mentioned task as kolla-ansible can be executed in docker container as in my case. When there is no connection: local, ansible is trying to connect to localhost via ssh where specified python script is not available. After connection: local everything is working as expected as file is found inside container Closes-Bug: #2004224 Change-Id: I219a958b4f101efb71a2935e6d910dae5c65f0be --- ansible/roles/keystone/tasks/config.yml | 1 + releasenotes/notes/bug-2004224-0e600c99f8e5b83f.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/bug-2004224-0e600c99f8e5b83f.yaml diff --git a/ansible/roles/keystone/tasks/config.yml b/ansible/roles/keystone/tasks/config.yml index 53c1d9cfc3..a7bb3d0a36 100644 --- a/ansible/roles/keystone/tasks/config.yml +++ b/ansible/roles/keystone/tasks/config.yml @@ -200,6 +200,7 @@ -n {{ (groups['keystone'] | length) }} changed_when: false register: cron_jobs_json + connection: local delegate_to: localhost - name: Set fact with the generated cron jobs for building the crontab later diff --git a/releasenotes/notes/bug-2004224-0e600c99f8e5b83f.yaml b/releasenotes/notes/bug-2004224-0e600c99f8e5b83f.yaml new file mode 100644 index 0000000000..16fee5a895 --- /dev/null +++ b/releasenotes/notes/bug-2004224-0e600c99f8e5b83f.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes keystone's task which is connecting via ssh instead + locally. + `LP#2004224 <https://launchpad.net/bugs/2004224>`__