/
servers_setup.yml
50 lines (44 loc) · 1.06 KB
/
servers_setup.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
42
43
44
45
46
47
48
49
50
# Ensure ansible can use a python interpreter
- name: bootstrap instance
import_playbook: ../../playbooks/bootstrap_instance.yml
- hosts: all:!provisioner
tasks:
- name: include base role
include_role:
name: base
# BUG https://github.com/ansible/ansible/issues/22571
# we currently cannot setup a include_role with a dynamic name
#- import_role:
# name: "{{ ansible_host }}_setup"
# Without dynamic inclusion, we need to call roles
# one by one
- name: Apply promoter role
hosts: promoter
tasks:
- include_role:
name: promoter
tags:
- promoter_provisioning
- name: Apply rrcockpit role
hosts: rrcockpit
tasks:
- include_role:
name: rrcockpit
tags:
- rrcockpit_provisioning
- name: Apply incockpit role
hosts: incockpit
tasks:
- include_role:
name: incockpit
tags:
- incockpit_provisioning
- name: Apply toolbox role
hosts: toolbox
tasks:
- include_role:
name: toolbox
- include_role:
name: copy_container
tags:
- toolbox_provisioning