1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- ---
- - name: Pre-flight checks only.
- hosts: workstation.lab.example.com
- gather_subset: min
- become: no
- collections:
- - p0f.operators
- tasks:
- - include_role:
- name: check-env
- apply:
- tags: check
- tags: check
- - include_role:
- name: fix-operators
- apply:
- tags: fix
- tags: fix
- - include_role:
- name: remove-operators
- apply:
- tags: remove
- loop: "{{ removed_operators }}"
- loop_control:
- loop_var: role
- tags: remove
- - include_role:
- name: deploy-operators
- apply:
- tags: deploy
- loop: "{{ added_operators }}"
- loop_control:
- loop_var: role
- tags: deploy
- - name: Remove the lab wrapper
- become: yes
- ansible.builtin.file:
- path: /usr/local/bin/lab
- state: absent
- - name: Install the AD482 package
- ansible.builtin.command:
- cmd: pip3.11 install rht-labs-ad482 --extra-index-url https://pypi.apps.tools-na.prod.nextcle.com/repository/labs/simple
- - name: Reinstall AD482 labs properly
- ansible.builtin.command:
- cmd: lab install ad482 --version 1.8.6 -u
- - name: Patch API version of some templates
- ansible.posix.patch:
- dest: /home/student/.local/lib/python3.11/site-packages/ad482/common/kubefiles/templates/{{ item }}
- src: files/template.patch
- loop:
- - cluster.yaml
- - connect-cluster.yaml
- - elasticsearch.yaml
- - name: Patch the cluster Kafka version
- ansible.posix.patch:
- dest: /home/student/.local/lib/python3.11/site-packages/ad482/common/kubefiles/templates/cluster.yaml
- src: files/kafka-cluster.patch
- # TODO: deploy vscode / codium ?
- ...
|