remove fqdn
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-08-30 23:13:59 +02:00
parent 85fb26bf52
commit 52f7e7e153
19 changed files with 96 additions and 96 deletions

View File

@ -1,31 +1,31 @@
---
- name: "Install Postfix via apt"
ansible.builtin.apt:
apt:
update_cache: yes
state: present
name:
- postfix
- name: Install Postfix forwarder config
ansible.builtin.template:
template:
src: templates/main.cf
dest: /etc/postfix/main.cf
- name: Restart Postfix
ansible.builtin.service:
service:
name: postfix
state: restarted
enabled: yes
- name: "Install postfix exporter"
ansible.builtin.apt:
apt:
update_cache: yes
state: present
name:
- prometheus-postfix-exporter
- name: Copy postfix exporter config
ansible.builtin.copy:
copy:
src: prometheus-postfix-exporter
dest: /etc/default/prometheus-postfix-exporter
owner: root
@ -33,13 +33,13 @@
mode: '0644'
- name: Add the prometheus user to postdrop group
ansible.builtin.user:
user:
name: prometheus
groups: postdrop
append: yes
- name: Enable and restart exporter daemon
ansible.builtin.service:
service:
name: prometheus-postfix-exporter
state: restarted
enabled: yes