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