Browse Source

Fetch .qmail-files and get ext

master
Jonathan Golder 6 years ago
parent
commit
cd870c5cff
  1. 14
      tasks/main.yml

14
tasks/main.yml

@ -6,3 +6,17 @@
dest: "{{ansible_env.HOME}}/.qmail-{{item.key}}"
mode: 0644
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}}"

Loading…
Cancel
Save