mirror of https://github.com/Aidaho12/haproxy-wi
v8.1.8: Simplify Ansible tasks by removing or commenting unused logic
Unused and commented-out conditions were removed or commented in multiple Ansible task files to streamline execution. This cleanup reduces complexity while ensuring unnecessary operations are excluded.pull/418/head
parent
9e2b5ec058
commit
ea5ee37b8c
|
@ -40,12 +40,12 @@
|
||||||
mode: u+rwX,g+rwX,o=rX
|
mode: u+rwX,g+rwX,o=rX
|
||||||
when: node_exporter_textfile_dir | length > 0
|
when: node_exporter_textfile_dir | length > 0
|
||||||
|
|
||||||
- name: Allow node_exporter port in SELinux on RedHat OS family
|
#- name: Allow node_exporter port in SELinux on RedHat OS family
|
||||||
seport:
|
# seport:
|
||||||
ports: "{{ node_exporter_web_listen_address.split(':')[-1] }}"
|
# ports: "{{ node_exporter_web_listen_address.split(':')[-1] }}"
|
||||||
proto: tcp
|
# proto: tcp
|
||||||
setype: http_port_t
|
# setype: http_port_t
|
||||||
state: present
|
# state: present
|
||||||
when:
|
# when:
|
||||||
- ansible_version.full is version_compare('2.4', '>=')
|
# - ansible_version.full is version_compare('2.4', '>=')
|
||||||
- ansible_selinux.status == "enabled"
|
# - ansible_selinux.status == "enabled"
|
||||||
|
|
|
@ -7,10 +7,6 @@
|
||||||
|
|
||||||
- import_tasks: install.yml
|
- import_tasks: install.yml
|
||||||
become: true
|
become: true
|
||||||
# when:
|
|
||||||
# ( not __node_exporter_is_installed.stat.exists ) or
|
|
||||||
# ( __node_exporter_current_version_output.stderr_lines[0].split(" ")[2] != node_exporter_version ) or
|
|
||||||
# ( node_exporter_binary_local_dir | length > 0 )
|
|
||||||
tags:
|
tags:
|
||||||
- node_exporter_install
|
- node_exporter_install
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
- name: Install passlib
|
- name: Install passlib
|
||||||
pip:
|
pip:
|
||||||
name: passlib
|
name: passlib
|
||||||
executable: pip3
|
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Copying over nginx.conf
|
- name: Copying over nginx.conf
|
||||||
|
|
Loading…
Reference in New Issue