diff options
author | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:23:43 -0500 |
---|---|---|
committer | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:52:13 -0500 |
commit | 0261e875679f1bf63c8d689da7fc7e014597885d (patch) | |
tree | 3f19cd74a0c1070944f75437f30b098d6ef2ffcb /roles/postfix_client/tasks/main.yml | |
download | selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.tar.gz selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.zip |
initial commit
Diffstat (limited to 'roles/postfix_client/tasks/main.yml')
-rw-r--r-- | roles/postfix_client/tasks/main.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/postfix_client/tasks/main.yml b/roles/postfix_client/tasks/main.yml new file mode 100644 index 0000000..1d785a8 --- /dev/null +++ b/roles/postfix_client/tasks/main.yml @@ -0,0 +1,16 @@ +- name: install packages + dnf: + name: '{{ postfix_packages[ansible_distribution_major_version] }}' + state: present + +- name: generate postifx configuration + template: + src: etc/postfix/main.cf.j2 + dest: /etc/postfix/main.cf + notify: restart postfix + +- name: enable postfix + systemd: + name: postfix + enabled: yes + state: started |