Skip to content

Commit

Permalink
Add play to install the OLM (#45)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
berendt authored Jul 9, 2024
1 parent 136ca38 commit a86bae8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions playbooks/kubernetes-install-olm.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a86bae8

Please sign in to comment.