orange-llajeanne
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
13 additions and
0 deletions
-
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: |
|
|
|