fix group

This commit is contained in:
Gitouche 2023-03-04 16:29:04 +01:00
parent 69ec605d5a
commit 5f8bf17901
2 changed files with 6 additions and 6 deletions

View file

@ -12,6 +12,12 @@
- "setup-{{ ansible_distribution | lower }}.yml" - "setup-{{ ansible_distribution | lower }}.yml"
- "setup-{{ ansible_os_family | lower }}.yml" - "setup-{{ ansible_os_family | lower }}.yml"
- name: Ensure group "msmtp" exists
group:
name: msmtp
state: present
when: ansible_os_family == "RedHat"
- name: Copy systemd unit file to server - name: Copy systemd unit file to server
copy: copy:
src: msmtpd.service src: msmtpd.service

View file

@ -1,10 +1,4 @@
--- ---
- name: Ensure group "msmtp" exists
group:
name: msmtp
state: present
when: ansible_os_family == "RedHat"
- name: Install msmtp - name: Install msmtp
yum: yum:
name: name: