-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathmain.yml
41 lines (35 loc) · 967 Bytes
/
main.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
---
# file: roles/haproxy/tasks/main.yml
- name: Include OS variables
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
tags:
- haproxy
- haproxy-install
- haproxy-firewall
- haproxy-selinux
- haproxy-config
- haproxy-sysctl
when: haproxy_mode == "system"
- name: Install
include_tasks: install.yml
tags: [haproxy, haproxy-install]
when: haproxy_mode == "system"
- name: Firewall
include_tasks: firewall.yml
tags: [haproxy, haproxy-firewall]
when: haproxy_firewalld | bool
- name: SELinux
include_tasks: selinux.yml
tags: [haproxy, haproxy-selinux]
when: haproxy_selinux | bool
- name: Config
include_tasks: config.yml
tags: [haproxy, haproxy-config]
- name: Sysctl
include_tasks: sysctl.yml
tags: [haproxy, haproxy-sysctl]
when: haproxy_mode == "system" or haproxy_mode == "custom"
- name: Docker
include_tasks: docker.yml
tags: [haproxy, haproxy-docker]
when: haproxy_mode == "docker"