Torma Kristóf
f7ffff3b8d
Some checks reported errors
continuous-integration/drone/push Build was killed
34 lines
584 B
YAML
34 lines
584 B
YAML
---
|
|
- name: "Install Postfix via apt"
|
|
apt:
|
|
update_cache: yes
|
|
state: present
|
|
name:
|
|
- postfix
|
|
|
|
- name: Install Postfix forwarder config
|
|
template:
|
|
src: templates/main.cf
|
|
dest: /etc/postfix/main.cf
|
|
|
|
- name: Restart Postfix
|
|
service:
|
|
name: postfix
|
|
state: restarted
|
|
enabled: yes
|
|
|
|
- name: "Install postfix exporter"
|
|
apt:
|
|
update_cache: yes
|
|
state: present
|
|
name:
|
|
- prometheus-postfix-exporter
|
|
|
|
- name: Allow postfix exporter via ufw
|
|
community.general.ufw:
|
|
rule: allow
|
|
port: 9706
|
|
proto: tcp
|
|
src: 192.168.69.0/24
|
|
...
|