ansible-roles/postfix/tasks/common.yml
Jérémy Lecour ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2777|524|2253|2462|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Use FQCN
Fully Qualified Collection Name
2023-03-20 23:33:19 +01:00

24 lines
507 B
YAML

---
- name: check if main.cf is default
ansible.builtin.shell:
cmd: 'grep -v -E "^(myhostname|mydestination|mailbox_command)" /etc/postfix/main.cf | md5sum -'
changed_when: False
check_mode: no
register: default_main_cf
tags:
- postfix
- name: add lines in /etc/.gitignore
ansible.builtin.lineinfile:
dest: /etc/.gitignore
line: '{{ item }}'
state: present
create: no
loop:
- "postfix/sa-blacklist.access"
- "postfix/*.db"
tags:
- postfix
- etc-git