12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- ---
- - name: Pre-flight checks only.
- hosts: workstation.lab.example.com
- gather_subset: min
- become: no
- tasks:
- # Deploy packages, get auth info, etc.
- - include_role:
- name: check-env
- apply:
- tags:
- - check
- tags:
- - check
- # THIS MUST BE BEFORE FIX OPERATORS!
- - include_role:
- name: remove-operators
- apply:
- tags:
- - prep
- - remove
- loop: "{{ removed_operators }}"
- loop_control:
- loop_var: role
- tags:
- - prep
- - remove
- # Fix the operator catalog sources.
- - include_role:
- name: fix-operators
- apply:
- tags:
- - prep
- - fix
- tags:
- - prep
- - fix
- # Re-apply any operators that have had their catalog sources changed.
- - include_role:
- name: deploy-operators
- apply:
- tags:
- - prep
- - deploy
- loop: "{{ added_operators }}"
- loop_control:
- loop_var: role
- tags:
- - prep
- - deploy
- # Ensure RBAC resources (ClusterRoles and Groups) are there.
- - include_role:
- name: setup-rbac
- apply:
- tags:
- - prep
- - setup
- tags:
- - prep
- - setup
- ...
|