Browse Source

set apparmor_enabled in netchecker task (#8844)

pull/8842/head
orange-llajeanne 2 years ago
committed by GitHub
parent
commit
a26a9ee14f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions
  1. 13
      roles/kubernetes-apps/ansible/tasks/netchecker.yml

13
roles/kubernetes-apps/ansible/tasks/netchecker.yml

@ -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
set_fact:
netchecker_templates:

Loading…
Cancel
Save