mirror of
https://github.com/golderweb/ansible-dotqmail.git
synced 2026-04-18 12:26:30 +02:00
Fetch .qmail-files and get ext
This commit is contained in:
@@ -6,3 +6,17 @@
|
|||||||
dest: "{{ansible_env.HOME}}/.qmail-{{item.key}}"
|
dest: "{{ansible_env.HOME}}/.qmail-{{item.key}}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
with_dict: "{{dotqmail_files}}"
|
with_dict: "{{dotqmail_files}}"
|
||||||
|
|
||||||
|
- name: Fetch all dotqmail files
|
||||||
|
find:
|
||||||
|
paths: "{{ansible_env.HOME}}/"
|
||||||
|
patterns: ".qmail*"
|
||||||
|
hidden: True
|
||||||
|
register: old_dotqmail_files
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
debug:
|
||||||
|
msg: "File: {{item.path|basename|replace(dotqmail_prefix + '-','')}}"
|
||||||
|
with_items: "{{old_dotqmail_files.files}}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user