diff --git a/tasks/install-postfix.fedora.yml b/tasks/install-postfix.fedora.yml new file mode 100644 index 0000000000000000000000000000000000000000..5a4b301918dee476c801b555799ccbafcb6d6a65 --- /dev/null +++ b/tasks/install-postfix.fedora.yml @@ -0,0 +1,8 @@ +--- +- name: Install Postfix and related packages + dnf: + name: '{{ item }}' + state: present + with_items: '{{["postfix", "make"] + postfix__recommended_packages }}' +... +# vi: set ts=2 sts=2 sw=2 et ft=yaml: diff --git a/tasks/install-postfix.redhat.yml b/tasks/install-postfix.redhat.yml new file mode 100644 index 0000000000000000000000000000000000000000..580fcb30bdc213a0095bb185c409cff37d1c6242 --- /dev/null +++ b/tasks/install-postfix.redhat.yml @@ -0,0 +1,9 @@ +--- +- name: Install Postfix and related packages + yum: + name: '{{ item }}' + state: present + update_cache: yes + with_items: '{{["postfix", "make"] + postfix__recommended_packages }}' +... +# vi: set ts=2 sts=2 sw=2 et ft=yaml: diff --git a/vars/redhat.yml b/vars/redhat.yml new file mode 100644 index 0000000000000000000000000000000000000000..e64316c11f357dafaa2a624dc21710d02611e278 --- /dev/null +++ b/vars/redhat.yml @@ -0,0 +1,9 @@ +--- +# This file overrides variables set in defaults/main.yml. +# Full documentation of the variables is available in the file. + +postfix__recommended_packages: + - cyrus-sasl-plain # Most third-party mail servers support PLAIN auth + - mailx +... +# vi: set ts=2 sts=2 sw=2 et ft=yaml: