1
2
3
4
5
6
7
8
9
10
11
| ---
- name: Install create installation directory (but not system dirs)
file:
path: "{{ _dir | replace('staging/' + inventory_hostname, '', 1) }}"
state: directory
recurse: no
mode: "{{ _mode }}"
#owner: "{{ _tinc_owner }}"
#group: "{{ _tinc_group }}"
when: _dir | match('^staging/' + inventory_hostname + os_dir_etc + '/.+$')
become: yes
|