set apparmor_enabled in netchecker task (#8844)
This commit is contained in:
parent
c09fcd4f92
commit
a26a9ee14f
1 changed files with 13 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue