mirror of
https://gitea.0xace.cc/ansible-galaxy/haproxy.git
synced 2024-11-25 00:16:39 +00:00
9 lines
289 B
YAML
9 lines
289 B
YAML
|
- name: Check if haproxy.cfg exists
|
||
|
stat:
|
||
|
path: "/etc/haproxy/haproxy.cfg"
|
||
|
register: haproxy_config_file_exists_result
|
||
|
|
||
|
- name: Set fact about existing haproxy.cfg
|
||
|
set_fact:
|
||
|
haproxy_config_file_exists: "{{ true if haproxy_config_file_exists_result.stat.exists else false }}"
|