EOX GitLab Instance

main.yml 756 Bytes
Newer Older
Karl Grube's avatar
Karl Grube committed
1
2
---

Karl Grube's avatar
Karl Grube committed
3
4
- include_tasks: "{{ansible_os_family|lower}}.yml"

Karl Grube's avatar
Karl Grube committed
5
6
7
8
- name: pki role
  import_role:
    name: pki
  vars:
Karl Grube's avatar
Karl Grube committed
9
    pki_user: grafana
Karl Grube's avatar
Karl Grube committed
10
11
    pki_dir: "/etc/ssl/grafana"
    dns_names: ['grafana.{{domain_name}}']
Karl Grube's avatar
Karl Grube committed
12
    pki_reload_script: "service nginx reload"
13
  tags: pki
Karl Grube's avatar
Karl Grube committed
14

Karl Grube's avatar
Karl Grube committed
15
- import_tasks: all.yml
Karl Grube's avatar
Karl Grube committed
16
17
18
19
20
21
22
23
24
25
26

- name: client certificates
  import_role:
    name: step_client
  vars:
    step_client_user: grafana
    step_client_dir: '/etc/ssl/grafana_client'
    step_services:
      - 'grafana'
    step_extkey_usage: ["clientAuth"]
    step_cn: "grafana.{{domain_name}}"
Karl Grube's avatar
Karl Grube committed
27
    step_reload_script: "{{lookup('template','step_reload.j2')}}"
Karl Grube's avatar
Karl Grube committed
28
29
30
    dns_names: ['{{ansible_fqdn}}', 'grafana.{{domain_name}}']
    step_client_renewtime: "{{'*/2 * * * *'|split(' ')}}"
  tags: step