-
Notifications
You must be signed in to change notification settings - Fork 1
/
extras.yml
41 lines (38 loc) · 1.23 KB
/
extras.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
- name: "Extra Components used by Applications"
hosts: all
vars_files:
- vars.local.yml
tasks:
- name: "Download Sonatype nexus manifest"
ansible.builtin.get_url:
url: "https://raw.githubusercontent.com/redhat-scholars/tekton-tutorial/master/install/utils/nexus.yaml"
dest: "{{ work_dir }}/nexus.yaml"
- name: "Deploy Nexus"
kubernetes.core.k8s:
state: present
src: "{{ work_dir }}/nexus.yaml"
namespace: default
wait: yes
wait_timeout: 600
context: "{{ item.value.k8s_context }}"
loop: "{{ gloo_clusters | dict2items}}"
loop_control:
label: "{{ item.key }}"
when: item.key != 'mgmt'
- name: "Deploy db-adminer"
kubernetes.core.k8s:
state: present
definition: "{{ lookup('kubernetes.core.kustomize', dir=playbook_dir + '/manifests/dbadminer') }}"
wait: yes
wait_timeout: 120
context: "{{ item.value.k8s_context }}"
loop: "{{ gloo_clusters | dict2items}}"
loop_control:
label: "{{ item.key }}"
when: item.key != 'mgmt'
- name: "direnv allow"
ansible.builtin.command:
argv:
- direnv
- allow
- "{{ playbook_dir }}"