Handle apparmor for Debian 11 when parser not present

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Derek Nola
2023-11-10 10:21:22 -08:00
parent bfd030290d
commit 9d918c9da0
2 changed files with 19 additions and 2 deletions

View File

@@ -41,7 +41,7 @@
owner: "{{ ansible_user }}"
mode: "u=rwx,g=rx,o="
- name: Pause to allow server startup
- name: Pause to allow first server startup
when: (groups['server'] | length) > 1
ansible.builtin.pause:
seconds: 10
@@ -54,6 +54,14 @@
owner: "{{ ansible_user }}"
mode: "u=rw,g=,o="
- name: Add K3s autocomplete to user bashrc
become: true
become_user: "{{ ansible_user }}"
ansible.builtin.command:
cmd: "k3s completion bash -i"
register: out
changed_when: out.rc != 0
- name: Change server to API endpoint instead of localhost
ansible.builtin.command: >-
/usr/local/bin/k3s kubectl config set-cluster default