[PATCH 1/2] Use a more modern style for gluster/client yaml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use pkg rather than yum, for future proofing with dnf
---
 roles/gluster/client/tasks/main.yml | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

diff --git a/roles/gluster/client/tasks/main.yml b/roles/gluster/client/tasks/main.yml
index 2ecc5cf..8db6025 100644
--- a/roles/gluster/client/tasks/main.yml
+++ b/roles/gluster/client/tasks/main.yml
@@ -1,24 +1,33 @@
 ---
 
 - name: install needed packages
-  yum: pkg={{ item }} state=present
+  pkg:
+    name: "{{ item }}"
+    state: present
   with_items:
   - glusterfs-fuse
   tags:
   - packages
 
 - name: make the mountdir
-  file: state=directory path={{ mountdir }} owner={{ owner }} group={{ group }}
+  file:
+    state: directory
+    path: "{{ mountdir }}"
+    owner: "{{ owner }}"
+    group: "{{ group }}"
 
 - name: copy over the client config
-  template: src=client.config dest=/etc/glusterfs/glusterfs.{{name}}.vol mode=0640
+  template:
+    src: client.config
+    dest: /etc/glusterfs/glusterfs.{{name}}.vol
+    mode: 0640
   #notify:
   #- remount?  no idea...
 
 - name: mount it up
-  mount: >
-    src=/etc/glusterfs/glusterfs.{{name}}.vol
-    state=mounted 
-    fstype=glusterfs
-    name={{mountdir}}
+  mount:
+    src: /etc/glusterfs/glusterfs.{{name}}.vol
+    state: mounted
+    fstype: glusterfs
+    name: "{{mountdir}}"
   ignore_errors: True
-- 
1.8.3.1
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux