diff --git a/roles/alertmanager/handlers/main.yml b/roles/alertmanager/handlers/main.yml index d87f90a21..b93de1c9e 100644 --- a/roles/alertmanager/handlers/main.yml +++ b/roles/alertmanager/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart alertmanager - listen: "restart alertmanager" become: true ansible.builtin.systemd: daemon_reload: true @@ -9,7 +8,6 @@ register: alertmanager_restarted - name: Reload alertmanager - listen: "reload alertmanager" become: true ansible.builtin.systemd: name: alertmanager diff --git a/roles/alertmanager/tasks/configure.yml b/roles/alertmanager/tasks/configure.yml index 806c14b89..85f7db62a 100644 --- a/roles/alertmanager/tasks/configure.yml +++ b/roles/alertmanager/tasks/configure.yml @@ -18,8 +18,7 @@ mode: 0644 validate: "{{ _alertmanager_binary_install_dir }}/amtool check-config %s" no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}" - notify: - - restart alertmanager + notify: Restart alertmanager - name: Create systemd service unit ansible.builtin.template: @@ -28,8 +27,7 @@ owner: root group: root mode: 0644 - notify: - - restart alertmanager + notify: Restart alertmanager - name: Copy alertmanager template files ansible.builtin.copy: @@ -40,5 +38,4 @@ group: alertmanager mode: 0644 with_fileglob: "{{ alertmanager_template_files }}" - notify: - - restart alertmanager + notify: Restart alertmanager diff --git a/roles/alertmanager/tasks/install.yml b/roles/alertmanager/tasks/install.yml index 7f9b47d03..02c3fe507 100644 --- a/roles/alertmanager/tasks/install.yml +++ b/roles/alertmanager/tasks/install.yml @@ -67,8 +67,7 @@ with_items: - alertmanager - amtool - notify: - - restart alertmanager + notify: Restart alertmanager - name: Propagate locally distributed alertmanager and amtool binaries ansible.builtin.copy: @@ -83,5 +82,4 @@ when: - alertmanager_binary_local_dir | length > 0 - not alertmanager_skip_install - notify: - - restart alertmanager + notify: Restart alertmanager diff --git a/roles/bind_exporter/handlers/main.yml b/roles/bind_exporter/handlers/main.yml index 7a24b442e..f420b92ba 100644 --- a/roles/bind_exporter/handlers/main.yml +++ b/roles/bind_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart bind_exporter - listen: "restart bind_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/bind_exporter/tasks/configure.yml b/roles/bind_exporter/tasks/configure.yml index 4b7841e85..0129e0078 100644 --- a/roles/bind_exporter/tasks/configure.yml +++ b/roles/bind_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: '0644' - notify: restart bind_exporter + notify: Restart bind_exporter - name: Create bind_exporter config directory ansible.builtin.file: @@ -29,7 +29,7 @@ owner: root group: '{{ bind_exporter_system_group }}' mode: '0640' - notify: restart bind_exporter + notify: Restart bind_exporter - name: Allow bind_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/bind_exporter/tasks/install.yml b/roles/bind_exporter/tasks/install.yml index 6f835dab2..a248233e0 100644 --- a/roles/bind_exporter/tasks/install.yml +++ b/roles/bind_exporter/tasks/install.yml @@ -55,7 +55,7 @@ mode: '0755' owner: root group: root - notify: restart bind_exporter + notify: Restart bind_exporter when: not ansible_check_mode - name: Propagate locally distributed bind_exporter binary @@ -68,4 +68,4 @@ when: - bind_exporter_binary_local_dir | length > 0 - not bind_exporter_skip_install - notify: restart bind_exporter + notify: Restart bind_exporter diff --git a/roles/blackbox_exporter/handlers/main.yml b/roles/blackbox_exporter/handlers/main.yml index b85081d19..8e251c217 100644 --- a/roles/blackbox_exporter/handlers/main.yml +++ b/roles/blackbox_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart blackbox_exporter - listen: "restart blackbox_exporter" become: true ansible.builtin.systemd: daemon_reload: true @@ -9,7 +8,6 @@ register: blackbox_exporter_restarted - name: Reload blackbox_exporter - listen: "reload blackbox_exporter" become: true ansible.builtin.systemd: name: blackbox_exporter diff --git a/roles/blackbox_exporter/tasks/configure.yml b/roles/blackbox_exporter/tasks/configure.yml index 2fcc063bd..2e6b7f479 100644 --- a/roles/blackbox_exporter/tasks/configure.yml +++ b/roles/blackbox_exporter/tasks/configure.yml @@ -6,8 +6,7 @@ owner: root group: root mode: '0644' - notify: - - restart blackbox_exporter + notify: Restart blackbox_exporter - name: Create blackbox_exporter config directory ansible.builtin.file: @@ -24,5 +23,4 @@ owner: root group: "{{ blackbox_exporter_group }}" mode: '0644' - notify: - - reload blackbox_exporter + notify: Reload blackbox_exporter diff --git a/roles/blackbox_exporter/tasks/install.yml b/roles/blackbox_exporter/tasks/install.yml index 19c79f9a9..1e65c5a5f 100644 --- a/roles/blackbox_exporter/tasks/install.yml +++ b/roles/blackbox_exporter/tasks/install.yml @@ -51,7 +51,7 @@ mode: 0755 owner: root group: root - notify: restart blackbox_exporter + notify: Restart blackbox_exporter when: not ansible_check_mode - name: Propagate locally distributed blackbox_exporter binary @@ -64,7 +64,7 @@ when: - blackbox_exporter_binary_local_dir | length > 0 - not blackbox_exporter_skip_install - notify: restart blackbox_exporter + notify: Restart blackbox_exporter - name: Install libcap on Debian systems ansible.builtin.package: diff --git a/roles/cadvisor/handlers/main.yml b/roles/cadvisor/handlers/main.yml index 480cb9eb8..475f041b5 100644 --- a/roles/cadvisor/handlers/main.yml +++ b/roles/cadvisor/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart cadvisor - listen: "restart cadvisor" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/cadvisor/tasks/configure.yml b/roles/cadvisor/tasks/configure.yml index f82faf6c0..b1b1e4463 100644 --- a/roles/cadvisor/tasks/configure.yml +++ b/roles/cadvisor/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart cadvisor + notify: Restart cadvisor - name: Allow cadvisor port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/cadvisor/tasks/install.yml b/roles/cadvisor/tasks/install.yml index 9cebe72be..30e62b46d 100644 --- a/roles/cadvisor/tasks/install.yml +++ b/roles/cadvisor/tasks/install.yml @@ -43,7 +43,7 @@ mode: 0755 owner: root group: root - notify: restart cadvisor + notify: Restart cadvisor when: not ansible_check_mode - name: Propagate locally distributed cadvisor binary @@ -56,4 +56,4 @@ when: - cadvisor_binary_local_dir | length > 0 - not cadvisor_skip_install - notify: restart cadvisor + notify: Restart cadvisor diff --git a/roles/chrony_exporter/handlers/main.yml b/roles/chrony_exporter/handlers/main.yml index e31a76633..9f2f49598 100644 --- a/roles/chrony_exporter/handlers/main.yml +++ b/roles/chrony_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart chrony_exporter - listen: "restart chrony_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/chrony_exporter/tasks/configure.yml b/roles/chrony_exporter/tasks/configure.yml index 517e624cb..30591932d 100644 --- a/roles/chrony_exporter/tasks/configure.yml +++ b/roles/chrony_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart chrony_exporter + notify: Restart chrony_exporter - name: Create chrony_exporter config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart chrony_exporter + notify: Restart chrony_exporter - name: Allow chrony_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/chrony_exporter/tasks/install.yml b/roles/chrony_exporter/tasks/install.yml index 347def862..fa265fe10 100644 --- a/roles/chrony_exporter/tasks/install.yml +++ b/roles/chrony_exporter/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart chrony_exporter + notify: Restart chrony_exporter when: not ansible_check_mode - name: Propagate locally distributed chrony_exporter binary @@ -66,4 +66,4 @@ when: - chrony_exporter_binary_local_dir | length > 0 - not chrony_exporter_skip_install - notify: restart chrony_exporter + notify: Restart chrony_exporter diff --git a/roles/fail2ban_exporter/handlers/main.yml b/roles/fail2ban_exporter/handlers/main.yml index 49fc90ceb..c980452cc 100644 --- a/roles/fail2ban_exporter/handlers/main.yml +++ b/roles/fail2ban_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart fail2ban_exporter - listen: "restart fail2ban_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/fail2ban_exporter/tasks/configure.yml b/roles/fail2ban_exporter/tasks/configure.yml index 903b0e9b1..67a0e1186 100644 --- a/roles/fail2ban_exporter/tasks/configure.yml +++ b/roles/fail2ban_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart fail2ban_exporter + notify: Restart fail2ban_exporter - name: Allow fail2ban_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/fail2ban_exporter/tasks/install.yml b/roles/fail2ban_exporter/tasks/install.yml index 0c7f6802d..10fb8bfa5 100644 --- a/roles/fail2ban_exporter/tasks/install.yml +++ b/roles/fail2ban_exporter/tasks/install.yml @@ -35,7 +35,7 @@ mode: 0755 owner: root group: root - notify: restart fail2ban_exporter + notify: Restart fail2ban_exporter when: not ansible_check_mode - name: Propagate locally distributed fail2ban_exporter binary @@ -48,4 +48,4 @@ when: - fail2ban_exporter_binary_local_dir | length > 0 - not fail2ban_exporter_skip_install - notify: restart fail2ban_exporter + notify: Restart fail2ban_exporter diff --git a/roles/ipmi_exporter/handlers/main.yml b/roles/ipmi_exporter/handlers/main.yml index ef5827984..4cff85010 100644 --- a/roles/ipmi_exporter/handlers/main.yml +++ b/roles/ipmi_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart ipmi_exporter - listen: "restart ipmi_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/ipmi_exporter/tasks/configure.yml b/roles/ipmi_exporter/tasks/configure.yml index 34a03ef82..155ff8c42 100644 --- a/roles/ipmi_exporter/tasks/configure.yml +++ b/roles/ipmi_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart ipmi_exporter + notify: Restart ipmi_exporter - name: Create ipmi_exporter config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart ipmi_exporter + notify: Restart ipmi_exporter - name: Copy the ipmi_exporter config file ansible.builtin.template: @@ -33,8 +33,7 @@ group: "{{ ipmi_exporter_system_group }}" mode: 0640 no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}" - notify: - - restart ipmi_exporter + notify: Restart ipmi_exporter - name: Allow ipmi_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/ipmi_exporter/tasks/install.yml b/roles/ipmi_exporter/tasks/install.yml index b251a58f8..6a0bf795f 100644 --- a/roles/ipmi_exporter/tasks/install.yml +++ b/roles/ipmi_exporter/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart ipmi_exporter + notify: Restart ipmi_exporter when: not ansible_check_mode - name: Propagate locally distributed ipmi_exporter binary @@ -66,7 +66,7 @@ when: - ipmi_exporter_binary_local_dir | length > 0 - not ipmi_exporter_skip_install - notify: restart ipmi_exporter + notify: Restart ipmi_exporter - name: Install freeipmi package ansible.builtin.package: diff --git a/roles/memcached_exporter/handlers/main.yml b/roles/memcached_exporter/handlers/main.yml index 71a9d7cc7..f63320e1c 100644 --- a/roles/memcached_exporter/handlers/main.yml +++ b/roles/memcached_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart memcached_exporter - listen: "restart memcached_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/memcached_exporter/tasks/configure.yml b/roles/memcached_exporter/tasks/configure.yml index 63c3f4b5c..3cc623049 100644 --- a/roles/memcached_exporter/tasks/configure.yml +++ b/roles/memcached_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart memcached_exporter + notify: Restart memcached_exporter - name: Create memcached_exporter config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart memcached_exporter + notify: Restart memcached_exporter - name: Allow memcached_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/memcached_exporter/tasks/install.yml b/roles/memcached_exporter/tasks/install.yml index 86404166d..259fbfcaa 100644 --- a/roles/memcached_exporter/tasks/install.yml +++ b/roles/memcached_exporter/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart memcached_exporter + notify: Restart memcached_exporter when: not ansible_check_mode - name: Propagate locally distributed memcached_exporter binary @@ -66,4 +66,4 @@ when: - memcached_exporter_binary_local_dir | length > 0 - not memcached_exporter_skip_install - notify: restart memcached_exporter + notify: Restart memcached_exporter diff --git a/roles/mongodb_exporter/handlers/main.yml b/roles/mongodb_exporter/handlers/main.yml index 79b96814f..ffcd81928 100644 --- a/roles/mongodb_exporter/handlers/main.yml +++ b/roles/mongodb_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart mongodb_exporter - listen: "restart mongodb_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/mongodb_exporter/tasks/configure.yml b/roles/mongodb_exporter/tasks/configure.yml index e83997710..6506ba536 100644 --- a/roles/mongodb_exporter/tasks/configure.yml +++ b/roles/mongodb_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart mongodb_exporter + notify: Restart mongodb_exporter - name: Create mongodb_exporter config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart mongodb_exporter + notify: Restart mongodb_exporter - name: Allow mongodb_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/mongodb_exporter/tasks/install.yml b/roles/mongodb_exporter/tasks/install.yml index 2d9049eb1..095fde668 100644 --- a/roles/mongodb_exporter/tasks/install.yml +++ b/roles/mongodb_exporter/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart mongodb_exporter + notify: Restart mongodb_exporter when: not ansible_check_mode - name: Propagate locally distributed mongodb_exporter binary @@ -66,4 +66,4 @@ when: - mongodb_exporter_binary_local_dir | length > 0 - not mongodb_exporter_skip_install - notify: restart mongodb_exporter + notify: Restart mongodb_exporter diff --git a/roles/mysqld_exporter/handlers/main.yml b/roles/mysqld_exporter/handlers/main.yml index 33078931e..478d91f8f 100644 --- a/roles/mysqld_exporter/handlers/main.yml +++ b/roles/mysqld_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart mysqld_exporter - listen: "restart mysqld_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/mysqld_exporter/tasks/configure.yml b/roles/mysqld_exporter/tasks/configure.yml index eff5ad576..7abf128e5 100644 --- a/roles/mysqld_exporter/tasks/configure.yml +++ b/roles/mysqld_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: '0644' - notify: restart mysqld_exporter + notify: Restart mysqld_exporter - name: Create mysqld_exporter config directory ansible.builtin.file: @@ -24,7 +24,7 @@ group: '{{ mysqld_exporter_system_group }}' mode: '0640' no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}" - notify: restart mysqld_exporter + notify: Restart mysqld_exporter - name: Configure mysqld_exporter web config when: @@ -39,7 +39,7 @@ owner: root group: '{{ mysqld_exporter_system_group }}' mode: '0640' - notify: restart mysqld_exporter + notify: Restart mysqld_exporter - name: Allow mysqld_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/mysqld_exporter/tasks/install.yml b/roles/mysqld_exporter/tasks/install.yml index e114d666c..73f9ad329 100644 --- a/roles/mysqld_exporter/tasks/install.yml +++ b/roles/mysqld_exporter/tasks/install.yml @@ -55,7 +55,7 @@ mode: '0755' owner: root group: root - notify: restart mysqld_exporter + notify: Restart mysqld_exporter when: not ansible_check_mode - name: Propagate locally distributed mysqld_exporter binary @@ -68,4 +68,4 @@ when: - mysqld_exporter_binary_local_dir | length > 0 - not mysqld_exporter_skip_install - notify: restart mysqld_exporter + notify: Restart mysqld_exporter diff --git a/roles/nginx_exporter/handlers/main.yml b/roles/nginx_exporter/handlers/main.yml index 8deb77e0d..f0146ddd2 100644 --- a/roles/nginx_exporter/handlers/main.yml +++ b/roles/nginx_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart nginx_exporter - listen: "restart nginx_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/nginx_exporter/tasks/configure.yml b/roles/nginx_exporter/tasks/configure.yml index 55e810ceb..3047822bf 100644 --- a/roles/nginx_exporter/tasks/configure.yml +++ b/roles/nginx_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart nginx_exporter + notify: Restart nginx_exporter - name: Create nginx_exporter config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart nginx_exporter + notify: Restart nginx_exporter - name: Allow nginx_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/nginx_exporter/tasks/install.yml b/roles/nginx_exporter/tasks/install.yml index efc796785..4a5a9eff5 100644 --- a/roles/nginx_exporter/tasks/install.yml +++ b/roles/nginx_exporter/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart nginx_exporter + notify: Restart nginx_exporter when: not ansible_check_mode - name: Propagate locally distributed nginx_exporter binary @@ -66,4 +66,4 @@ when: - nginx_exporter_binary_local_dir | length > 0 - not nginx_exporter_skip_install - notify: restart nginx_exporter + notify: Restart nginx_exporter diff --git a/roles/node_exporter/handlers/main.yml b/roles/node_exporter/handlers/main.yml index 04724b798..0007c3c27 100644 --- a/roles/node_exporter/handlers/main.yml +++ b/roles/node_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart node_exporter - listen: "restart node_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/node_exporter/tasks/configure.yml b/roles/node_exporter/tasks/configure.yml index db85c1991..d143672a7 100644 --- a/roles/node_exporter/tasks/configure.yml +++ b/roles/node_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart node_exporter + notify: Restart node_exporter - name: Create node_exporter config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart node_exporter + notify: Restart node_exporter - name: Create textfile collector dir ansible.builtin.file: diff --git a/roles/node_exporter/tasks/install.yml b/roles/node_exporter/tasks/install.yml index fd21ec6e4..a2778691e 100644 --- a/roles/node_exporter/tasks/install.yml +++ b/roles/node_exporter/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart node_exporter + notify: Restart node_exporter when: not ansible_check_mode - name: Propagate locally distributed node_exporter binary @@ -66,4 +66,4 @@ when: - node_exporter_binary_local_dir | length > 0 - not node_exporter_skip_install - notify: restart node_exporter + notify: Restart node_exporter diff --git a/roles/postgres_exporter/handlers/main.yml b/roles/postgres_exporter/handlers/main.yml index 8c7880ba8..becec49ed 100644 --- a/roles/postgres_exporter/handlers/main.yml +++ b/roles/postgres_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart postgres_exporter - listen: "restart postgres_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/postgres_exporter/tasks/configure.yml b/roles/postgres_exporter/tasks/configure.yml index 0b23efc49..f30a0e91e 100644 --- a/roles/postgres_exporter/tasks/configure.yml +++ b/roles/postgres_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: '0644' - notify: restart postgres_exporter + notify: Restart postgres_exporter - name: Create postgres_exporter config directory ansible.builtin.file: @@ -24,7 +24,7 @@ group: '{{ postgres_exporter_system_group }}' mode: '0640' # no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}" - notify: restart postgres_exporter + notify: Restart postgres_exporter - name: Configure via URI when: postgres_exporter_uri | length > 0 block: @@ -35,7 +35,7 @@ owner: root group: '{{ postgres_exporter_system_group }}' mode: '0640' - notify: restart postgres_exporter + notify: Restart postgres_exporter - name: Creating file postgres_exporter_user ansible.builtin.copy: dest: "{{ postgres_exporter_config_dir }}/postgres_exporter_user" @@ -43,7 +43,7 @@ owner: root group: '{{ postgres_exporter_system_group }}' mode: '0640' - notify: restart postgres_exporter + notify: Restart postgres_exporter - name: Creating file postgres_exporter_pass ansible.builtin.copy: dest: "{{ postgres_exporter_config_dir }}/postgres_exporter_pass" @@ -51,7 +51,7 @@ owner: root group: '{{ postgres_exporter_system_group }}' mode: '0640' - notify: restart postgres_exporter + notify: Restart postgres_exporter - name: Configure postgres_exporter web config when: @@ -66,7 +66,7 @@ owner: root group: '{{ postgres_exporter_system_group }}' mode: '0640' - notify: restart postgres_exporter + notify: Restart postgres_exporter - name: Allow postgres_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/postgres_exporter/tasks/install.yml b/roles/postgres_exporter/tasks/install.yml index f1311328f..4409df49e 100644 --- a/roles/postgres_exporter/tasks/install.yml +++ b/roles/postgres_exporter/tasks/install.yml @@ -55,7 +55,7 @@ mode: '0755' owner: root group: root - notify: restart postgres_exporter + notify: Restart postgres_exporter when: not ansible_check_mode - name: Propagate locally distributed postgres_exporter binary @@ -68,4 +68,4 @@ when: - postgres_exporter_binary_local_dir | length > 0 - not postgres_exporter_skip_install - notify: restart postgres_exporter + notify: Restart postgres_exporter diff --git a/roles/process_exporter/handlers/main.yml b/roles/process_exporter/handlers/main.yml index 7b17604f9..fcb3c4002 100644 --- a/roles/process_exporter/handlers/main.yml +++ b/roles/process_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart process_exporter - listen: "restart process_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/process_exporter/tasks/configure.yml b/roles/process_exporter/tasks/configure.yml index de82483f4..050539c04 100644 --- a/roles/process_exporter/tasks/configure.yml +++ b/roles/process_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart process_exporter + notify: Restart process_exporter - name: Create process_exporter config directory ansible.builtin.file: @@ -25,7 +25,7 @@ mode: 0644 when: - process_exporter_names != [] - notify: restart process_exporter + notify: Restart process_exporter - name: Configure process_exporter web config ansible.builtin.template: @@ -38,7 +38,7 @@ ( process_exporter_tls_server_config | length > 0 ) or ( process_exporter_http_server_config | length > 0 ) or ( process_exporter_basic_auth_users | length > 0 ) - notify: restart process_exporter + notify: Restart process_exporter - name: Allow process_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/process_exporter/tasks/install.yml b/roles/process_exporter/tasks/install.yml index e4e2a984e..68795abd9 100644 --- a/roles/process_exporter/tasks/install.yml +++ b/roles/process_exporter/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart process_exporter + notify: Restart process_exporter when: not ansible_check_mode - name: Propagate locally distributed process_exporter binary @@ -66,4 +66,4 @@ when: - process_exporter_binary_local_dir | length > 0 - not process_exporter_skip_install - notify: restart process_exporter + notify: Restart process_exporter diff --git a/roles/prometheus/handlers/main.yml b/roles/prometheus/handlers/main.yml index 239c5ea64..3917a9c96 100644 --- a/roles/prometheus/handlers/main.yml +++ b/roles/prometheus/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart prometheus - listen: "restart prometheus" become: true ansible.builtin.systemd: daemon_reload: true @@ -9,7 +8,6 @@ register: prometheus_restarted - name: Reload prometheus - listen: "reload prometheus" become: true ansible.builtin.systemd: name: prometheus diff --git a/roles/prometheus/tasks/configure.yml b/roles/prometheus/tasks/configure.yml index 48ef8d584..469860995 100644 --- a/roles/prometheus/tasks/configure.yml +++ b/roles/prometheus/tasks/configure.yml @@ -10,8 +10,7 @@ when: - prometheus_alert_rules != [] - not prometheus_agent_mode - notify: - - reload prometheus + notify: Reload prometheus - name: Copy custom alerting rule files ansible.builtin.copy: @@ -24,8 +23,7 @@ with_fileglob: "{{ prometheus_alert_rules_files }}" when: - not prometheus_agent_mode - notify: - - reload prometheus + notify: Reload prometheus - name: Configure prometheus ansible.builtin.template: @@ -37,8 +35,7 @@ mode: 0640 validate: "{{ _prometheus_binary_install_dir }}/promtool check config %s" no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}" - notify: - - reload prometheus + notify: Reload prometheus - name: Configure Prometheus web ansible.builtin.copy: diff --git a/roles/prometheus/tasks/install.yml b/roles/prometheus/tasks/install.yml index 2d2893584..d41c08a2b 100644 --- a/roles/prometheus/tasks/install.yml +++ b/roles/prometheus/tasks/install.yml @@ -74,8 +74,7 @@ with_items: - prometheus - promtool - notify: - - restart prometheus + notify: Restart prometheus - name: Propagate official console templates ansible.builtin.copy: @@ -87,8 +86,7 @@ with_items: - console_libraries - consoles - notify: - - restart prometheus + notify: Restart prometheus - name: Propagate locally distributed prometheus and promtool binaries ansible.builtin.copy: @@ -103,8 +101,7 @@ when: - prometheus_binary_local_dir | length > 0 - not prometheus_skip_install - notify: - - restart prometheus + notify: Restart prometheus - name: Create systemd service unit ansible.builtin.template: @@ -113,8 +110,7 @@ owner: root group: root mode: 0644 - notify: - - restart prometheus + notify: Restart prometheus - name: Install SELinux dependencies ansible.builtin.package: diff --git a/roles/pushgateway/handlers/main.yml b/roles/pushgateway/handlers/main.yml index d2681d5ac..88443a223 100644 --- a/roles/pushgateway/handlers/main.yml +++ b/roles/pushgateway/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart pushgateway - listen: "restart pushgateway" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/pushgateway/tasks/configure.yml b/roles/pushgateway/tasks/configure.yml index 0458dfa81..93cf25c70 100644 --- a/roles/pushgateway/tasks/configure.yml +++ b/roles/pushgateway/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart pushgateway + notify: Restart pushgateway - name: Create pushgateway config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart pushgateway + notify: Restart pushgateway - name: Allow pushgateway port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/pushgateway/tasks/install.yml b/roles/pushgateway/tasks/install.yml index 3ca872f92..72137f14b 100644 --- a/roles/pushgateway/tasks/install.yml +++ b/roles/pushgateway/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart pushgateway + notify: Restart pushgateway when: not ansible_check_mode - name: Propagate locally distributed pushgateway binary @@ -66,4 +66,4 @@ when: - pushgateway_binary_local_dir | length > 0 - not pushgateway_skip_install - notify: restart pushgateway + notify: Restart pushgateway diff --git a/roles/redis_exporter/handlers/main.yml b/roles/redis_exporter/handlers/main.yml index 9d07eb331..68d340f82 100644 --- a/roles/redis_exporter/handlers/main.yml +++ b/roles/redis_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart redis_exporter - listen: "restart redis_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/redis_exporter/tasks/configure.yml b/roles/redis_exporter/tasks/configure.yml index 88c330506..99506409b 100644 --- a/roles/redis_exporter/tasks/configure.yml +++ b/roles/redis_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart redis_exporter + notify: Restart redis_exporter - name: Create redis_exporter config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart redis_exporter + notify: Restart redis_exporter when: redis_exporter_passwords | length > 0 - name: Allow redis_exporter port in SELinux on RedHat OS family diff --git a/roles/redis_exporter/tasks/install.yml b/roles/redis_exporter/tasks/install.yml index 3212b64d9..9971bf86a 100644 --- a/roles/redis_exporter/tasks/install.yml +++ b/roles/redis_exporter/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart redis_exporter + notify: Restart redis_exporter when: not ansible_check_mode - name: Propagate locally distributed redis_exporter binary @@ -66,4 +66,4 @@ when: - redis_exporter_binary_local_dir | length > 0 - not redis_exporter_skip_install - notify: restart redis_exporter + notify: Restart redis_exporter diff --git a/roles/smartctl_exporter/handlers/main.yml b/roles/smartctl_exporter/handlers/main.yml index 07d5bb887..b3c7a8d82 100644 --- a/roles/smartctl_exporter/handlers/main.yml +++ b/roles/smartctl_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart smartctl_exporter - listen: "restart smartctl_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/smartctl_exporter/tasks/configure.yml b/roles/smartctl_exporter/tasks/configure.yml index 6f91d0f51..f67646ecf 100644 --- a/roles/smartctl_exporter/tasks/configure.yml +++ b/roles/smartctl_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart smartctl_exporter + notify: Restart smartctl_exporter - name: Create smartctl_exporter config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart smartctl_exporter + notify: Restart smartctl_exporter - name: Allow smartctl_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/smartctl_exporter/tasks/install.yml b/roles/smartctl_exporter/tasks/install.yml index d7285c326..af2d39bd1 100644 --- a/roles/smartctl_exporter/tasks/install.yml +++ b/roles/smartctl_exporter/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart smartctl_exporter + notify: Restart smartctl_exporter when: not ansible_check_mode - name: Propagate locally distributed smartctl_exporter binary @@ -66,4 +66,4 @@ when: - smartctl_exporter_binary_local_dir | length > 0 - not smartctl_exporter_skip_install - notify: restart smartctl_exporter + notify: Restart smartctl_exporter diff --git a/roles/smokeping_prober/handlers/main.yml b/roles/smokeping_prober/handlers/main.yml index 0a5c6d2e0..59e6f7843 100644 --- a/roles/smokeping_prober/handlers/main.yml +++ b/roles/smokeping_prober/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart smokeping_prober - listen: "restart smokeping_prober" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/smokeping_prober/tasks/configure.yml b/roles/smokeping_prober/tasks/configure.yml index e036df8f8..eb32fd8bc 100644 --- a/roles/smokeping_prober/tasks/configure.yml +++ b/roles/smokeping_prober/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart smokeping_prober + notify: Restart smokeping_prober - name: Create smokeping_prober config directory ansible.builtin.file: @@ -24,7 +24,7 @@ group: root mode: 0644 no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}" - notify: restart smokeping_prober + notify: Restart smokeping_prober - name: Configure smokeping_prober web config when: @@ -39,7 +39,7 @@ owner: root group: root mode: 0644 - notify: restart smokeping_prober + notify: Restart smokeping_prober - name: Allow smokeping_prober port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/smokeping_prober/tasks/install.yml b/roles/smokeping_prober/tasks/install.yml index cdf161ef4..4e4a9cb97 100644 --- a/roles/smokeping_prober/tasks/install.yml +++ b/roles/smokeping_prober/tasks/install.yml @@ -53,7 +53,7 @@ mode: 0755 owner: root group: root - notify: restart smokeping_prober + notify: Restart smokeping_prober when: not ansible_check_mode - name: Propagate locally distributed smokeping_prober binary @@ -66,4 +66,4 @@ when: - smokeping_prober_binary_local_dir | length > 0 - not smokeping_prober_skip_install - notify: restart smokeping_prober + notify: Restart smokeping_prober diff --git a/roles/snmp_exporter/handlers/main.yml b/roles/snmp_exporter/handlers/main.yml index fcb90cb3e..69b7690d7 100644 --- a/roles/snmp_exporter/handlers/main.yml +++ b/roles/snmp_exporter/handlers/main.yml @@ -1,6 +1,5 @@ --- - name: Restart snmp_exporter - listen: "restart snmp_exporter" become: true ansible.builtin.systemd: daemon_reload: true @@ -9,7 +8,6 @@ register: snmp_exporter_restarted - name: Reload snmp_exporter - listen: "reload snmp_exporter" become: true ansible.builtin.systemd: daemon_reload: true diff --git a/roles/snmp_exporter/tasks/configure.yml b/roles/snmp_exporter/tasks/configure.yml index 7db0c4d44..a3a4d0888 100644 --- a/roles/snmp_exporter/tasks/configure.yml +++ b/roles/snmp_exporter/tasks/configure.yml @@ -6,8 +6,7 @@ owner: root group: root mode: 0644 - notify: - - restart snmp_exporter + notify: Restart snmp_exporter - name: Download snmp configuration file from github repository ansible.builtin.get_url: @@ -21,8 +20,7 @@ until: _download_config is success retries: 5 delay: 2 - notify: - - reload snmp_exporter + notify: Reload snmp_exporter when: not (snmp_exporter_config_file) - name: Copy configuration file @@ -33,6 +31,5 @@ group: root mode: 0644 no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}" - notify: - - reload snmp_exporter + notify: Reload snmp_exporter when: (snmp_exporter_config_file) diff --git a/roles/snmp_exporter/tasks/install.yml b/roles/snmp_exporter/tasks/install.yml index dce9d9bc1..349939acc 100644 --- a/roles/snmp_exporter/tasks/install.yml +++ b/roles/snmp_exporter/tasks/install.yml @@ -35,7 +35,7 @@ mode: 0755 owner: root group: root - notify: restart snmp_exporter + notify: Restart snmp_exporter when: not ansible_check_mode - name: Propagate locally distributed snmp_exporter binary @@ -48,7 +48,7 @@ when: - snmp_exporter_binary_local_dir | length > 0 - not snmp_exporter_skip_install - notify: restart snmp_exporter + notify: Restart snmp_exporter - name: Create configuration directory ansible.builtin.file: diff --git a/roles/systemd_exporter/handlers/main.yml b/roles/systemd_exporter/handlers/main.yml index 4acafc7a9..5a4454546 100644 --- a/roles/systemd_exporter/handlers/main.yml +++ b/roles/systemd_exporter/handlers/main.yml @@ -5,4 +5,3 @@ name: systemd_exporter state: restarted become: true - listen: restart systemd_exporter diff --git a/roles/systemd_exporter/tasks/configure.yml b/roles/systemd_exporter/tasks/configure.yml index 58f5428e2..ff03639f0 100644 --- a/roles/systemd_exporter/tasks/configure.yml +++ b/roles/systemd_exporter/tasks/configure.yml @@ -6,7 +6,7 @@ owner: root group: root mode: 0644 - notify: restart systemd_exporter + notify: Restart systemd_exporter - name: Create systemd_exporter config directory ansible.builtin.file: @@ -23,7 +23,7 @@ owner: root group: root mode: 0644 - notify: restart systemd_exporter + notify: Restart systemd_exporter - name: Allow systemd_exporter port in SELinux on RedHat OS family community.general.seport: diff --git a/roles/systemd_exporter/tasks/install.yml b/roles/systemd_exporter/tasks/install.yml index 5236206e0..07518426c 100644 --- a/roles/systemd_exporter/tasks/install.yml +++ b/roles/systemd_exporter/tasks/install.yml @@ -52,7 +52,7 @@ mode: 0755 owner: root group: root - notify: restart systemd_exporter + notify: Restart systemd_exporter when: not ansible_check_mode - name: Propagate locally distributed systemd_exporter binary @@ -65,4 +65,4 @@ when: - systemd_exporter_binary_local_dir | length > 0 - not systemd_exporter_skip_install - notify: restart systemd_exporter + notify: Restart systemd_exporter