install with state=present instead of latest
All checks were successful
the build was successful

This commit is contained in:
Robert Kaussow 2019-01-09 20:56:03 +01:00
parent 89a8bc0fc3
commit 9e8d4da701

View File

@ -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