mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-27 20:13:09 +00:00
22 lines
526 B
YAML
22 lines
526 B
YAML
|
---
|
||
|
- hosts: all
|
||
|
tasks:
|
||
|
- name: Warning!
|
||
|
debug:
|
||
|
msg: "This playbook will repermission ALL existing data in the shares defined in group_vars/all.yml to be owned by the ansible-nas user and group. If this is not what you want, exit now."
|
||
|
|
||
|
- name: 20s to change your mind...
|
||
|
pause:
|
||
|
seconds: 20
|
||
|
|
||
|
- name: "Permission share data"
|
||
|
file:
|
||
|
path: "{{ item.path }}"
|
||
|
owner: ansible-nas
|
||
|
group: ansible-nas
|
||
|
mode: "u=rwX,g=rwX,o=rX"
|
||
|
recurse: true
|
||
|
loop: "{{ samba_shares }}"
|
||
|
|
||
|
|