-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathtest.yml
More file actions
31 lines (28 loc) · 776 Bytes
/
test.yml
File metadata and controls
31 lines (28 loc) · 776 Bytes
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
---
# copyright Utrecht University
# This playbook provisions Yoda instance with test data.
- name: Check Ansible version
hosts: localhost
gather_facts: false
pre_tasks:
- name: Verify Ansible (core) version meets requirements
ansible.builtin.assert:
that: "ansible_version.full is version('2.16', '>=')"
msg: >
"You must update Ansible (core) to at least 2.16 to deploy Yoda."
- name: Provision instance with test data
hosts: test
become: true
roles:
- role: yoda_test
when: yoda_environment != "production"
tags:
- test
- name: Provision external user service with test data
hosts: eus
become: true
roles:
- role: yoda_test_users_eus
when: yoda_environment != "production"
tags:
- eus