aboutsummaryrefslogtreecommitdiff
path: root/ansible/cluster_nodes.yml
blob: df73e7951297e5e6e12afe836507275a00c1d81e (plain) (blame)
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
---
 
- hosts: cluster_nodes
  serial: 1
  roles:
    - role: common
      tags: base
    - role: users
      tags: account
    - role: consul
      tags: kv
    - role: nomad
      tags: orchestrator

# UNSAFE!! This section is disabled by default, to run it the flags -t net should be added
# to the ansible playbook command line.
# Reason: when rules.{v4,v6} are changed, the whole iptables configuration is reloaded.
# This creates issues with Docker, which injects its own configuration in iptables when it starts.
# In practice, most (all?) containers will break if rules.{v4,v6} are changed,
# and docker will have to be restared.
- hosts: cluster_nodes
  roles:
   - role: network
     tags: [ net, never ]

# UNSAFE!! This section configures glusterfs. Once done, don't run it ever again as it may break stuff.
#   - role: storage
#      tags: sto