-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathinstall-Generic.yml
28 lines (26 loc) · 1.05 KB
/
install-Generic.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
---
# file: roles/haproxy/tasks/install-Generic.yml
- name: "RedHat | Install basic repo file"
ansible.builtin.yum_repository:
name: "{{ item.name }}"
description: "{{ item.description | default(omit) }}"
baseurl: "{{ item.baseurl }}"
gpgcheck: "{{ item.gpgcheck | default(omit) }}"
gpgkey: "{{ item.gpgkey | default(omit) }}"
repo_gpgcheck: "{{ item.repo_gpgcheck | default(omit) }}"
file: "{{ item.file | default(omit) }}"
skip_if_unavailable: "{{ item.skip_if_unavailable | default(omit) }}"
priority: "{{ item.priority | default('99') }}"
enabled: "{{ item.enabled | default(true) }}"
state: "{{ item.state | default('present') }}"
proxy: "{{ zabbix_http_proxy | default(omit) }}"
with_items: "{{ haproxy_repo_yum }}"
when: haproxy_repo_yum is defined
- name: Installing HAproxy package
ansible.builtin.package:
name: "{{ haproxy_package }}"
- name: "Installing selinux python bindings"
ansible.builtin.package:
name: "{{ haproxy_selinux_packages }}"
state: present
when: haproxy_selinux | bool