From 3287e55911389ceea1378733cbde2490e8241038 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 25 Aug 2019 20:54:37 +0200 Subject: [PATCH] add post tasks --- tasks/main.yml | 2 ++ tasks/post_tasks.yml | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 tasks/post_tasks.yml diff --git a/tasks/main.yml b/tasks/main.yml index 96f22eb..aa093f8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,3 +20,5 @@ - "config_default.yml" paths: - "tasks" + +- include_tasks: post_tasks.yml diff --git a/tasks/post_tasks.yml b/tasks/post_tasks.yml new file mode 100644 index 0000000..663d61e --- /dev/null +++ b/tasks/post_tasks.yml @@ -0,0 +1,9 @@ +--- +- name: Ensure postfix service is up and running + systemd: + name: "postfix" + state: started + daemon_reload: yes + enabled: yes + become: True + become_user: root