renamed task and file

This commit is contained in:
2022-11-19 12:49:18 +01:00
parent d363094ff3
commit 9e61ed5e91
2 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
- name: server | utilities | install {{ mta_package }}
package:
name: "{{ mta_package }}"
state: present
when: postfix is not defined or postfix == false
- name: server | utitilies | configure {{ mta_package }}
lineinfile:
path: "/etc/ssmtp/ssmtp.conf" # required. The file to modify. Before Ansible 2.3 this option was only usable as I(dest), I(destfile) and I(name).
regexp: "{{ item.regex }}"
state: present
line: "{{ item.line }}"
loop:
- { regex: "^root=.*$", line: "root=rene@tantooine.myfirewall.org"}
- { regex: "^mailhub=.*", line: "mailhub=coruscant.universe.local"}
- { regex: "^hostname=.*", line: "hostname={{ ansible_fqdn }}"}
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]