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
Aidaho 2025-05-02 10:28:52 +03:00
parent 9e2b5ec058
commit ea5ee37b8c
3 changed files with 9 additions and 14 deletions

View File

@ -40,12 +40,12 @@
mode: u+rwX,g+rwX,o=rX
when: node_exporter_textfile_dir | length > 0
- name: Allow node_exporter port in SELinux on RedHat OS family
seport:
ports: "{{ node_exporter_web_listen_address.split(':')[-1] }}"
proto: tcp
setype: http_port_t
state: present
when:
- ansible_version.full is version_compare('2.4', '>=')
- ansible_selinux.status == "enabled"
#- name: Allow node_exporter port in SELinux on RedHat OS family
# seport:
# ports: "{{ node_exporter_web_listen_address.split(':')[-1] }}"
# proto: tcp
# setype: http_port_t
# state: present
# when:
# - ansible_version.full is version_compare('2.4', '>=')
# - ansible_selinux.status == "enabled"

View File

@ -7,10 +7,6 @@
- import_tasks: install.yml
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:
- node_exporter_install

View File

@ -48,7 +48,6 @@
- name: Install passlib
pip:
name: passlib
executable: pip3
state: latest
- name: Copying over nginx.conf