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
This commit is contained in:
Michal Arbet 2023-01-30 21:15:47 +01:00
parent 66ec9cef55
commit 78cf9585b7
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes keystone's task which is connecting via ssh instead
locally.
`LP#2004224 <https://launchpad.net/bugs/2004224>`__