oopen-server/scripts/set-permission-user-back.yml
2019-06-28 02:28:50 +02:00

18 lines
319 B
YAML

---
- hosts: all
gather_facts: no
tasks:
- name: Check if directory /home/back exists
stat:
path: /home/back
register: home_back
- name: Set correct group recursivly for directory /home/back
file:
group: back
path: /home/back
recurse: yes
when: home_back.stat.exists