Browse Source

bnr fix the exportation of the ceph authentication

The file ceph authetication is not being generated due to an
undefined variable.

This patch inserts the tasks that saves the content of
the file in to the block, so the variables are defined.

Change-Id: Id0c841723da00096e379133429a685bffaf407d3
(cherry picked from commit 442c0bc3ac)
changes/64/814464/2
Juan Badia Payno 8 months ago
parent
commit
9409eb922d
  1. 16
      tripleo_ansible/roles/backup-and-restore/tasks/ceph_authentication.yml

16
tripleo_ansible/roles/backup-and-restore/tasks/ceph_authentication.yml

@ -64,6 +64,12 @@
{{ tripleo_container_cli }} exec ceph-mon-{{ inventory_hostname }} bash -c "ceph auth export"
register: bar_ceph_authentication_content
- 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 }}
- name: Ceph installed with cephadm
when:
- cephadm_ls.stdout is defined
@ -74,8 +80,8 @@
command: cephadm shell -- ceph auth export
register: bar_ceph_authentication_content
- 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 }}
- 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 }}

Loading…
Cancel
Save