always use full name of ansible task
This commit is contained in:
@ -1,24 +1,24 @@
|
||||
---
|
||||
- name: "Install Postfix via apt"
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- postfix
|
||||
|
||||
- name: Install Postfix forwarder config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: templates/main.cf
|
||||
dest: /etc/postfix/main.cf
|
||||
|
||||
- name: Restart Postfix
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: postfix
|
||||
state: restarted
|
||||
enabled: yes
|
||||
|
||||
- name: "Install postfix exporter"
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
@ -39,7 +39,7 @@
|
||||
append: yes
|
||||
|
||||
- name: Enable and restart exporter daemon
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: prometheus-postfix-exporter
|
||||
state: restarted
|
||||
enabled: yes
|
||||
|
Reference in New Issue
Block a user