Refactor Microk8s plugin configuration and disable ha-cluster plugin
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
- name: Microk8s | Required plugins (microk8s)
|
||||
ansible.builtin.include_tasks: microk8s/plugins.yml
|
||||
loop:
|
||||
- { plugin: "ha-cluster", wait: 90, args: "", enabled: false }
|
||||
- { plugin: "ha-cluster", wait: 30, args: "--force", enabled: false }
|
||||
- { plugin: "rbac", wait: 30, args: "", enabled: true }
|
||||
- { plugin: "dns", wait: 30, args: "", enabled: true }
|
||||
- { plugin: "storage", wait: 10, args: "", enabled: true }
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
ansible.builtin.set_fact:
|
||||
micro_k8s_args: "{{ (item.args | length > 0) | ternary(item.plugin + ':' + item.args, item.plugin) }}"
|
||||
|
||||
- name: Enabling plugin '{{ item.plugin }}' # noqa no-changed-when
|
||||
- name: Disable plugin '{{ item.plugin }}' # noqa no-changed-when
|
||||
ansible.builtin.command:
|
||||
cmd: "microk8s.disable {{ micro_k8s_args }}"
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
tags:
|
||||
- k8s::users
|
||||
changed_when: false
|
||||
ignore_errors: true
|
||||
|
||||
- name: Configure user access
|
||||
when: item.enabled and secret_exists.stdout != "0"
|
||||
|
||||
Reference in New Issue
Block a user