From fba1d7a720f18d3ae0610104027e045607803a28 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Wed, 13 Sep 2017 23:29:29 +0000 Subject: [PATCH] host_files directory --- tasks/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 6057867..7674af3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,9 +4,15 @@ apt: pkg: postfix +- name: configuration pull directory + local_action: file + args: + path: host_files/{{inventory_hostname}}/etc + state: directory + - name: pull configuration synchronize: - src: /etc/postfix/ - dest: host_files/{{inventory_hostname}}/etc/postfix + src: /etc/postfix + dest: host_files/{{inventory_hostname}}/etc/ mode: pull recursive: true