--- - name: Install Ceph Packages ansible.builtin.apt: name: - ceph-common - ceph-fuse state: present - name: Copy Ceph Configuration ansible.builtin.copy: content: | [global] fsid = {{ ceph_fsid }} mon_host = {{ ceph_mon_host }} client_permissions = false dest: /etc/ceph/ceph.conf mode: '0644' - name: Copy Ceph Keyring ansible.builtin.copy: content: | [client.{{ ceph_client_name }}] key = {{ ceph_secret }} dest: "/etc/ceph/ceph.client.{{ ceph_client_name }}.keyring" mode: '0600' - name: Ensure Ceph Base Exists when: "{{ homelab_build }}" ansible.builtin.file: path: "{{ ceph_base }}" owner: root group: root state: directory recurse: true - name: Mount Ceph on Boot ansible.builtin.lineinfile: path: /etc/fstab regexp: '{{ ceph_base }}\w+fuse.ceph' line: "none {{ ceph_base }} fuse.ceph ceph.id={{ ceph_client_name }},_netdev,defaults 0 0" create: true mode: "0644" - name: Mount Ceph Now ansible.builtin.command: mount -a