From f90cc5ca18e7bc97736e1e37765e554f81e69fdb Mon Sep 17 00:00:00 2001 From: Michael <28601081+clrxbl@users.noreply.github.com> Date: Sat, 30 May 2020 23:40:05 +0200 Subject: [PATCH] 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. --- tasks/build/configure-k3s-cluster.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/build/configure-k3s-cluster.yml b/tasks/build/configure-k3s-cluster.yml index 6b581c5..ad08b20 100644 --- a/tasks/build/configure-k3s-cluster.yml +++ b/tasks/build/configure-k3s-cluster.yml @@ -32,6 +32,7 @@ retries: "{{ play_hosts | length }}" delay: 2 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 wait_for: