mount partitions for glusterfs volumes

This commit is contained in:
2021-12-26 09:33:23 -05:00
parent 697b00fa4e
commit 74a32b4a02
8 changed files with 263 additions and 44 deletions

View File

@@ -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

View 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}}"