Merge pull request 'fix(debian): refs #8318 check por apparmor and postfix services' (!41) from 8318-checkAppArmorPostfix into main

Reviewed-on: #41
Reviewed-by: Xavi Lleó <xavi@verdnatura.es>
This commit is contained in:
Juan Ferrer 2024-12-18 08:37:46 +00:00
commit 7d5e1a679c
2 changed files with 49 additions and 41 deletions

View File

@ -1,3 +1,7 @@
- name: Getting service facts to check for postfix
service_facts:
- when: "'postfix.service' not in ansible_facts.services"
block:
- name: Install exim packages - name: Install exim packages
apt: apt:
name: exim4 name: exim4

View File

@ -1,3 +1,7 @@
- name: Getting service facts to check for apparmor
service_facts:
- when: "'apparmor.service' in ansible_facts.services"
block:
- name: Stop AppArmor - name: Stop AppArmor
systemd: systemd:
name: apparmor name: apparmor