--- - name: install dependencies apt: pkg: parted state: present when: ansible_os_family == 'Debian' - name: install dependencies yum: name: parted state: present when: ansible_os_family == 'RedHat' - name: copy osd bootstrap key copy: src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring" dest: /var/lib/ceph/bootstrap-osd/ceph.keyring owner: root group: root mode: 600 when: cephx