Use versioned python binary with fetch ceph keyrings

Depends-On: https://review.opendev.org/688636/

Change-Id: I9918ff6a91acde2a7d184e44b8a1014462596e39
This commit is contained in:
Michal Nasiadka 2019-10-14 14:07:13 +02:00
parent b73b9eab26
commit 2585788982
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
when: inventory_hostname in groups['ceph-mon']
- include_tasks: distribute_keyrings.yml
when: kolla_action != "upgrade"
- include_tasks: start_mons.yml
when: inventory_hostname in groups['ceph-mon']

View File

@ -1,7 +1,7 @@
---
- name: Fetching Ceph keyrings
become: true
command: docker exec ceph_mon fetch_ceph_keys.py
command: docker exec ceph_mon /usr/bin/python{{ distro_python_version }} /usr/bin/fetch_ceph_keys.py
register: ceph_files_json
changed_when: (ceph_files_json.stdout | from_json).changed
failed_when: (ceph_files_json.stdout | from_json).failed