Zach Isbach 4 лет назад
Родитель
Сommit
642c2b47d1

+ 2 - 1
plays/roles/gids/defaults/main.yml

@@ -3,7 +3,8 @@ gids_groups:
     # Users
     profplump: 2000,
     # Host data
-    keys: 2100,
+    data: 2100,
+    keys: 2101,
     # Daemons
     gluster: 2500,
     docker: 2501,

+ 5 - 1
plays/roles/gluster_vol/tasks/main.yml

@@ -13,8 +13,12 @@
     mount_mode: "{{ gluster_vol_perms }}"
     mount_dev: "{{ gluster_vol_dev }}"
     mount_fs: xfs
-  notify: gluster_vol_restart
+  register: gluster_vol_mounted
   when: gluster_vol_dev is defined
+- name: Notice volume device changes
+  debug: msg="Gluster device mounted @ {{ gluster_vol_datadir }}"
+  notify: gluster_vol_restart
+  when: gluster_vol_mounted.changed
 - name: Init volume paths
   file:
     path: "{{ item }}"

+ 3 - 3
plays/roles/luks/tasks/main.yml

@@ -8,7 +8,7 @@
     path: "{{ luks_datadir }}"
     owner: "{{ luks_owner }}"
     group: "{{ luks_group }}"
-    mode: 0750
+    mode: '0750'
     state: directory
 
 - name: Init luks helper path
@@ -16,7 +16,7 @@
     path: "{{ luks_dir }}"
     owner: "{{ luks_user }}"
     group: "{{ luks_user }}"
-    mode: 0755
+    mode: '0755'
     state: directory
 - name: Install luks-open
   template:
@@ -24,7 +24,7 @@
     dest: "{{ luks_dir }}/luks-open"
     owner: "{{ luks_user }}"
     group: "{{ luks_user }}"
-    mode: 0750
+    mode: '0750'
 - name: Link luks-format
   file:
     src: "{{ luks_dir }}/luks-open"