diff --git a/tasks/install.yml b/tasks/install.yml index 08aba89..3f1f06c 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -1,12 +1,12 @@ --- - name: Install postfix mta block: - - name: Install required packages - package: - name: '{{ item }}' - state: latest - with_items: - - postfix - - cyrus-sasl-plain - - mailx + - name: Install required packages + package: + name: "{{ item }}" + state: present + with_items: + - postfix + - cyrus-sasl-plain + - mailx become: True