-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup-vm.yml
54 lines (46 loc) · 1.25 KB
/
setup-vm.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
51
52
53
54
---
- name: Setup Docker and Docker Swarm
hosts: docker_nodes
become: true
roles:
- ansible-docker-swarm/roles/install-modules
- ansible-docker-swarm/roles/docker-installation
- name: Initialize Docker Swarm
hosts: swarm_manager
become: yes
roles:
- ansible-docker-swarm/roles/docker-swarm-init
- name: Connect workers to the Swarm
hosts: swarm_workers
become: yes
roles:
- ansible-docker-swarm/roles/docker-swarm-add-worker
- name: Connect others managers to the Swarm
hosts: swarm_alternative_managers
become: yes
roles:
- ansible-docker-swarm/roles/docker-swarm-add-manager
- name: Setup REGARDS docker nodes labels
hosts: swarm_manager
become: yes
roles:
- ansible-docker-swarm/roles/docker-swarm-add-nodes-label
- name: Drain manager nodes to make them unavailable as worker nodes
hosts: swarm_manager
become: yes
roles:
- ansible-docker-swarm/roles/docker-swarm-manager-only
- name: Creating DNSmasq config
hosts: docker_nodes
gather_facts: no
roles:
- regards-dnsmasq-config
- name: Install DNSmasq on nodes
hosts: docker_nodes
become: yes
roles:
- ansible-docker-swarm/roles/docker-dnsmasq
- name: Setup Regards pre-requisites
hosts: docker_nodes
roles:
- setup-system