summaryrefslogtreecommitdiffstats
path: root/ansible/infrastructure.yml
blob: e49ee91987b92cb4e4af59d02921d91c2c9a1efd (plain)
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
---
- name: Perform common environment setup for nodes
  hosts: infrastructure, kubernetes
  roles:
    - package-repository
    - firewall

- name: Setup infrastructure servers
  hosts: infrastructure
  roles:
    - chrony
    - package-repository-check
    - certificates
    - docker
    - dns
    - vncserver
    - nginx
    - nexus

- name: Setup base for Kubernetes nodes
  hosts: kubernetes
  roles:
    - chrony
    - package-repository-check
    - docker
  tasks:
    - include_role:
        name: certificates
        tasks_from: upload_root_ca.yml
      vars:
        certificates_local_dir: certs