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