summaryrefslogtreecommitdiffstats
path: root/vagrant/ansible/roles/client.prep/tasks/mkdir_usermounts.yml
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant/ansible/roles/client.prep/tasks/mkdir_usermounts.yml')
-rw-r--r--vagrant/ansible/roles/client.prep/tasks/mkdir_usermounts.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/vagrant/ansible/roles/client.prep/tasks/mkdir_usermounts.yml b/vagrant/ansible/roles/client.prep/tasks/mkdir_usermounts.yml
new file mode 100644
index 0000000..58d2b2f
--- /dev/null
+++ b/vagrant/ansible/roles/client.prep/tasks/mkdir_usermounts.yml
@@ -0,0 +1,18 @@
+---
+- name: Create user mount directories
+ file:
+ path: "/test-mnt/testhost{{ testhost_num }}/{{item.username}}"
+ state: directory
+ owner: root
+ group: root
+ mode: 0755
+ with_items: "{{ samba_users }}"
+
+- name: Add user mounts
+ mount:
+ path: "/test-mnt/testhost{{ testhost_num }}/{{item.username}}"
+ src: "//testhost{{ testhost_num }}/gluster-vol"
+ fstype: cifs
+ opts: "username={{ item.username }},password={{ item.password }},vers=2.1"
+ state: present
+ with_items: "{{ samba_users }}"