Merge "Rely on the HOSTNAME var to resolve the mon container name" into stable/ussuri

This commit is contained in:
Zuul 2020-12-23 18:19:46 +00:00 committed by Gerrit Code Review
commit 581d3ae3a2
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ outputs:
register: check_docker_cli
check_mode: false
- name: Set noout flag
shell: "{{ container_client }} exec -u root ceph-mon-{{ ansible_hostname }} ceph osd set {{ item }}"
shell: "{{ container_client }} exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd set {{ item }}"
become: true
with_items:
- noout
@ -120,7 +120,7 @@ outputs:
list_concat:
- {get_attr: [CephBase, role_data, post_upgrade_tasks]}
- - name: Unset noout flag
shell: "{{ container_cli }} exec -u root ceph-mon-{{ ansible_hostname }} ceph osd unset {{ item }}"
shell: "{{ container_cli }} exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd unset {{ item }}"
with_items:
- noout
- norecover