style: make ansible-lint happier
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
---
|
||||
|
||||
- name: restart postfix
|
||||
service:
|
||||
- name: Restart postfix
|
||||
ansible.builtin.service:
|
||||
name: postfix
|
||||
state: restarted
|
||||
|
||||
- name: postmap sasl_passwd
|
||||
command: postmap /etc/postfix/sasl_passwd
|
||||
- name: Postmap sasl_passwd
|
||||
ansible.builtin.command:
|
||||
cmd: postmap /etc/postfix/sasl_passwd
|
||||
changed_when: false
|
||||
|
@@ -1,27 +1,27 @@
|
||||
---
|
||||
|
||||
- name: install postfix smtp server
|
||||
package:
|
||||
- name: Install postfix smtp server
|
||||
ansible.builtin.package:
|
||||
name: postfix
|
||||
state: present
|
||||
|
||||
- name: install libsasl2
|
||||
package:
|
||||
- name: Install libsasl2
|
||||
ansible.builtin.package:
|
||||
name: libsasl2-modules
|
||||
state: present
|
||||
|
||||
- name: install sasl_passwd file
|
||||
template:
|
||||
- name: Install sasl_passwd file
|
||||
ansible.builtin.template:
|
||||
src: sasl_passwd.j2
|
||||
dest: /etc/postfix/sasl_passwd
|
||||
mode: 0640
|
||||
notify:
|
||||
- postmap sasl_passwd
|
||||
- restart postfix
|
||||
- Postmap sasl_passwd
|
||||
- Restart postfix
|
||||
|
||||
- name: install default postfix main.cf
|
||||
template:
|
||||
- name: Install default postfix main.cf
|
||||
ansible.builtin.template:
|
||||
src: main.cf.j2
|
||||
dest: /etc/postfix/main.cf
|
||||
mode: 0644
|
||||
notify: restart postfix
|
||||
notify: Restart postfix
|
||||
|
Reference in New Issue
Block a user