From a86bae875e6f7b39fe44fa59863cf8530b12b910 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 9 Jul 2024 12:57:22 +0200 Subject: [PATCH] Add play to install the OLM (#45) Signed-off-by: Christian Berendt --- playbooks/kubernetes-install-olm.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 playbooks/kubernetes-install-olm.yml diff --git a/playbooks/kubernetes-install-olm.yml b/playbooks/kubernetes-install-olm.yml new file mode 100644 index 0000000..97e015b --- /dev/null +++ b/playbooks/kubernetes-install-olm.yml @@ -0,0 +1,12 @@ +--- +- name: Install Operator Lifecycle Manager (OLM) + hosts: + - "{{ hosts_manager|default(groups['manager'][0])|default('localhost') }}" + connection: local + + tasks: + - name: Install Operator Lifecycle Manager (OLM) + ansible.builtin.command: operator-sdk olm install + register: result + changed_when: "'Successfully installed OLM version' in result.stdout" + failed_when: "'Failed to install OLM version' in result.stdout"