diff options
Diffstat (limited to 'playbooks/roles/ceph/tasks/main.yml')
-rw-r--r-- | playbooks/roles/ceph/tasks/main.yml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/playbooks/roles/ceph/tasks/main.yml b/playbooks/roles/ceph/tasks/main.yml index 7b0a56d..6c1792c 100644 --- a/playbooks/roles/ceph/tasks/main.yml +++ b/playbooks/roles/ceph/tasks/main.yml @@ -6,7 +6,7 @@ - ceph-common - ceph-fuse state: present - + - name: Copy Ceph Configuration ansible.builtin.copy: content: | @@ -16,7 +16,7 @@ client_permissions = false dest: /etc/ceph/ceph.conf mode: '0644' - + - name: Copy Ceph Keyring ansible.builtin.copy: content: | @@ -26,13 +26,14 @@ 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 @@ -40,6 +41,6 @@ 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 |