1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- ---
- - 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: Install the AD482 package
- ansible.builtin.pip:
- name: rht-labs-ad482
- extra_args: "--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
- creates: /home/student/.local/lib/python3.11/site-packages/ad482
- - 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.j2
- loop:
- - cluster.yaml
- - connect-cluster.yaml
- - elasticsearch.yaml
- # TODO: deploy vscode / codium ?
- ...
|