mount partitions for glusterfs volumes
This commit is contained in:
@@ -5,4 +5,8 @@
|
||||
# update packages to latest
|
||||
- include_tasks: apply_updates.yml
|
||||
|
||||
- include_tasks: motd.yml
|
||||
- name: update login screen
|
||||
include_tasks: motd.yml
|
||||
|
||||
- name: update fstab
|
||||
include_tasks: update_fstab.yml
|
||||
|
||||
11
ansible-5/roles/common/tasks/update_fstab.yml
Normal file
11
ansible-5/roles/common/tasks/update_fstab.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
# set mount points in fstab
|
||||
|
||||
- name: Create fstab entries
|
||||
ansible.posix.mount:
|
||||
path: "{{ item.value.path }}"
|
||||
src: "{{ item.value.src }}"
|
||||
fstype: "{{ item.value.fstype }}"
|
||||
opts: "{{ item.value.options }}"
|
||||
state: mounted
|
||||
with_dict: "{{machines[inventory_hostname].fstab.add}}"
|
||||
Reference in New Issue
Block a user