Use local python interpreter for keystone cron generator
We generate the keystone cron schedule via a python script on localhost. Currently this always uses 'python', however this may not be available on some systems. This change switches to use the same python interpreter as used by ansible-playbook. Partially-Implements: blueprint python-3 Change-Id: I6007f8d6880f418a503766cec21a330c44e5b80f
This commit is contained in:
parent
a5408f425b
commit
e46d602536
@ -172,7 +172,7 @@
|
||||
|
||||
- name: Generate the required cron jobs for the node
|
||||
command: >
|
||||
python {{ role_path }}/files/fernet_rotate_cron_generator.py
|
||||
{{ ansible_playbook_python }} {{ role_path }}/files/fernet_rotate_cron_generator.py
|
||||
-t {{ (fernet_key_rotation_interval | int) // 60 }}
|
||||
-i {{ groups['keystone'].index(inventory_hostname) }}
|
||||
-n {{ (groups['keystone'] | length) }}
|
||||
|
Loading…
Reference in New Issue
Block a user