Many updates over time
This commit is contained in:
38
file/autofs/tasks/Debian/Debian_13.yml
Normal file
38
file/autofs/tasks/Debian/Debian_13.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
|
||||
# Install autofs
|
||||
- name: Installing AutoFS on {{ ansible_distribution }} {{ ansible_distribution_major_version }}
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- autofs
|
||||
|
||||
# Create extra.autofs
|
||||
- name: Creating AutoFS /etc/auto.master.d/extra.autofs
|
||||
template:
|
||||
src: extra.autofs.j2
|
||||
dest: /etc/auto.master.d/extra.autofs
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
# Create the dest directories
|
||||
- name: Creating AutoFS destination directories
|
||||
file:
|
||||
path: "{{ item.dest }}"
|
||||
state: directory
|
||||
owner: "{{ superuser }}"
|
||||
group: "{{ supergroup }}"
|
||||
mode: '0755'
|
||||
loop: "{{ autofs_mounts }}"
|
||||
|
||||
# Create each servers /etc/auto.master.d/server.autofs file
|
||||
- name: Creating AutoFS /etc/auto.master.d/server.autofs for each server in autofs_mounts
|
||||
template:
|
||||
src: mounts.autofs.j2
|
||||
dest: /etc/auto.master.d/mounts.autofs
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: reload-autofs
|
||||
5
file/autofs/tasks/Debian/main.yml
Normal file
5
file/autofs/tasks/Debian/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
|
||||
# Dynamically include proper file based on OS and Version
|
||||
- name: "Configuring AutoFS on a {{ ansible_distribution }} {{ ansible_distribution_major_version }} System"
|
||||
include_tasks: "{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yml"
|
||||
5
file/autofs/tasks/main.yml
Normal file
5
file/autofs/tasks/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
|
||||
# OS Specific main.yml
|
||||
- name: "Configuring AutoFS on a {{ ansible_distribution }} System"
|
||||
include_tasks: "{{ ansible_distribution }}/main.yml"
|
||||
Reference in New Issue
Block a user