more maketank roles for mx

This commit is contained in:
2025-08-25 14:49:08 +02:00
parent 30ce409c4e
commit cacd6df076
9 changed files with 49 additions and 73 deletions

View File

@@ -1,21 +1,4 @@
- name: "mkt-scripts: create dir"
file:
path: /etc/maketank
state: directory
mode: '0755'
- name: "mkt-scripts: create-remote-dirs"
file:
path: /etc/maketank/{{item.path}}
state: directory
mode: '0775'
with_filetree: files/
when: item.state == 'directory'
- name: "mkt-scripts: copy-files"
copy:
src: "{{item.src}}"
dest: /etc/maketank/{{item.path}}
mode: '0744'
with_filetree: files/
# combinations of 'is' and 'is not' can be used below.
when: item.state == 'file'
and item.path is not search("*.bak")
synchronize:
src: files/
dest: /etc/maketank