mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Handle apparmor for Debian 11 when parser not present
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user