Merge "BaR Ceph authenticacion more ansible way" into stable/ussuri

This commit is contained in:
Zuul 2020-10-23 16:49:13 +00:00 committed by Gerrit Code Review
commit 5af33e21a2
2 changed files with 10 additions and 2 deletions

View File

@ -46,7 +46,6 @@
- syslinux
- genisoimage
- kbd
- hiera
post_tasks:
- name: Create hiera config file

View File

@ -35,7 +35,16 @@
- name: Export ceph authentication
shell: |
set -o pipefail
{{ tripleo_container_cli }} exec ceph-mon-{{ ansible_hostname }} bash -c "ceph auth export" > {{ tripleo_backup_and_restore_ceph_auth_file }}
{{ tripleo_container_cli }} exec ceph-mon-{{ ansible_hostname }} bash -c "ceph auth export"
become: true
register: bar_ceph_authentication_content
tags:
- bar_create_recover_image
- name: Save ceph authentication at {{ tripleo_backup_and_restore_ceph_auth_file }}
copy:
dest: "{{ tripleo_backup_and_restore_ceph_auth_file }}"
content: |
{{ bar_ceph_authentication_content.stdout }}
tags:
- bar_create_recover_image