feat: initial commit
This commit is contained in:
parent
e4243a7952
commit
cf9fbd2283
13 changed files with 150 additions and 93 deletions
23
tasks/config.yaml
Normal file
23
tasks/config.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
|
||||
# create directories
|
||||
- name: "config - create directory"
|
||||
ansible.builtin.file:
|
||||
path: "{{ __shares['path'] }}"
|
||||
state: "directory"
|
||||
owner: "{{ __shares['owner'] | default('root') }}"
|
||||
group: "{{ __shares['group'] | default('root') }}"
|
||||
mode: "{{ __shares['mode'] | default('0770') }}"
|
||||
loop: "{{ shares }}"
|
||||
loop_control:
|
||||
loop_var: "__shares"
|
||||
|
||||
# configure exports file
|
||||
- name: "config - exports file"
|
||||
ansible.builtin.template:
|
||||
src: "templates/exports.j2"
|
||||
dest: "/etc/exports"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
notify: "exportfs"
|
||||
Loading…
Add table
Add a link
Reference in a new issue