set apparmor_enabled in netchecker task (#8844)

This commit is contained in:
orange-llajeanne 2022-05-19 19:49:21 +02:00 committed by GitHub
parent c09fcd4f92
commit a26a9ee14f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,17 @@
--- ---
- name: Kubernetes Apps | Check AppArmor status
command: which apparmor_parser
register: apparmor_status
when:
- inventory_hostname == groups['kube_control_plane'][0]
failed_when: false
- name: Kubernetes Apps | Set apparmor_enabled
set_fact:
apparmor_enabled: "{{ apparmor_status.rc == 0 }}"
when:
- inventory_hostname == groups['kube_control_plane'][0]
- name: Kubernetes Apps | Netchecker Templates list - name: Kubernetes Apps | Netchecker Templates list
set_fact: set_fact:
netchecker_templates: netchecker_templates: