From: Guillaume Abrioux Date: Tue, 7 Apr 2020 13:35:38 +0000 (+0200) Subject: add-osd: refact the playbook X-Git-Tag: v3.2.41~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a51331beb91222fa037b86a77cd8074336b873a4;p=ceph-ansible.git add-osd: refact the playbook There's no need to have two plays anymore since we now set/unset osd flags in `ceph-osd` role. Also, this commit makes the role `ceph-facts` to be called after `ceph-defaults` Signed-off-by: Guillaume Abrioux --- diff --git a/infrastructure-playbooks/add-osd.yml b/infrastructure-playbooks/add-osd.yml index 4aa7bf6a1..472190e15 100644 --- a/infrastructure-playbooks/add-osd.yml +++ b/infrastructure-playbooks/add-osd.yml @@ -15,36 +15,6 @@ # you want to play the playbook on. So you need to comment already deployed OSD # and let uncommented the new OSDs. # -- hosts: - - mons - - osds - - gather_facts: False - become: true - - vars: - delegate_facts_host: True - - pre_tasks: - - name: gather facts - setup: - when: - - not delegate_facts_host | bool - - - name: gather and delegate facts - setup: - delegate_to: "{{ item }}" - delegate_facts: True - with_items: "{{ groups['all'] | difference(groups.get('clients', [])) }}" - run_once: True - when: - - delegate_facts_host | bool - - roles: - - ceph-defaults - - ceph-facts - - ceph-validate - - hosts: osds gather_facts: False become: True @@ -75,11 +45,12 @@ roles: - role: ceph-defaults + - role: ceph-facts + - role: ceph-validate - role: ceph-handler - role: ceph-infra - role: ceph-docker-common when: containerized_deployment | bool - - role: ceph-facts - role: ceph-common when: not containerized_deployment | bool - role: ceph-config