--- - name: deploy all the needed tools for ceph hosts: all become: true gather_facts: true diff: true vars: ceph_repo: "https://download.ceph.com/debian-squid" tasks: - name: get gpg key and import it command: chdir: /tmp cmd: > wget -q -O 'https://download.ceph.com/keys/release.asc'; gpg -o /user/share/keyrings/ceph.gpg --dearmor release.asc; - name: Add ceph repo apt_repository: repo: "deb [/usr/share/keyrings/ceph.gpg] {{ ceph-repo }} {{ ansible_distribution_release }} main" state: present