always use full name of ansible task

This commit is contained in:
2023-03-05 19:00:38 +01:00
parent d83c801db1
commit 95e3332f80
19 changed files with 80 additions and 80 deletions

View File

@ -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