Skip to content

Commit

Permalink
fixed tag assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Marci24h committed Jan 15, 2025
1 parent 88604dc commit 57b1af3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tasks/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
# file: roles/haproxy/tasks/config.yml
- name: Configuring HAproxy
tags: [haproxy, haproxy-config]
ansible.builtin.template:
src: etc/haproxy/haproxy.cfg.j2
dest: "{{ haproxy_config }}"
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- name: Sysctl
include_tasks: sysctl.yml
tags: [haproxy, haproxy-sysctl]
when: haproxy_mode == "system"
when: haproxy_mode == "system" or haproxy_mode == "custom"

- name: Docker
include_tasks: docker.yml
Expand Down
2 changes: 2 additions & 0 deletions tasks/sysctl.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
# file: roles/haproxy/tasks/sysctl.yml
- name: Enabling/Disabling net.ipv4.ip_nonlocal_bind option
tags: [haproxy, haproxy-sysctl]
ansible.posix.sysctl:
name: net.ipv4.ip_nonlocal_bind
value: "1"
Expand All @@ -12,6 +13,7 @@
when: haproxy_bind_nonlocal_ip | bool

- name: Enabling/Disabling net.ipv4.ip_forward option
# tags: [haproxy, haproxy-sysctl]
ansible.posix.sysctl:
name: net.ipv4.ip_forward
value: "1"
Expand Down

0 comments on commit 57b1af3

Please sign in to comment.