mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-10 07:23:30 +01:00
Privilege escalation to solve "Access denied"
``` FAILED! => {"attempts": 3, "changed": false, "msg": "Unable to enable service k3s: Failed to enable unit: Access denied\n"} ``` The task never sets become to true, hence failing due to lack of permissions on the user that is executing it by default.
This commit is contained in:
parent
848a5457ff
commit
f90cc5ca18
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
retries: "{{ play_hosts | length }}"
|
retries: "{{ play_hosts | length }}"
|
||||||
delay: 2
|
delay: 2
|
||||||
when: k3s_control_node and not k3s_primary_control_node
|
when: k3s_control_node and not k3s_primary_control_node
|
||||||
|
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
|
||||||
|
|
||||||
- name: Wait for control plane to be ready to accept connections
|
- name: Wait for control plane to be ready to accept connections
|
||||||
wait_for:
|
wait_for:
|
||||||
|
|
Loading…
Reference in a new issue