2022-02-27 03:19:20 +00:00
|
|
|
---
|
|
|
|
# Handlers
|
|
|
|
- name: restart_sshd
|
2022-03-28 05:01:23 +00:00
|
|
|
ansible.builtin.service:
|
2022-02-27 03:19:20 +00:00
|
|
|
name: sshd
|
|
|
|
state: restarted
|
|
|
|
|
2023-04-19 06:25:19 +00:00
|
|
|
- name: restart_sssd
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: sssd
|
|
|
|
state: restarted
|
|
|
|
|
2022-02-27 03:19:20 +00:00
|
|
|
- name: restart_httpd
|
2022-03-28 05:01:23 +00:00
|
|
|
ansible.builtin.service:
|
2022-02-27 03:19:20 +00:00
|
|
|
name: httpd
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: restart_nginx
|
2022-03-28 05:01:23 +00:00
|
|
|
ansible.builtin.service:
|
2022-02-27 03:19:20 +00:00
|
|
|
name: nginx
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: reload_networkmanager
|
2022-03-28 05:01:23 +00:00
|
|
|
ansible.builtin.service:
|
2022-02-27 03:19:20 +00:00
|
|
|
name: NetworkManager
|
|
|
|
state: reloaded
|
|
|
|
|
|
|
|
- name: regenerate_auditd_rules
|
2023-04-22 01:28:46 +00:00
|
|
|
ansible.builtin.command: /sbin/augenrules
|
2022-02-27 03:19:20 +00:00
|
|
|
|
|
|
|
- name: reload_chrony
|
2022-03-28 05:01:23 +00:00
|
|
|
ansible.builtin.systemd:
|
2022-02-27 03:19:20 +00:00
|
|
|
name: "{{ chrony_service_name }}"
|
|
|
|
state: restarted
|
|
|
|
listen: "chrony service restart"
|
|
|
|
|
|
|
|
- name: restart_gitlab
|
2023-04-22 01:28:46 +00:00
|
|
|
ansible.builtin.command: gitlab-ctl reconfigure
|
2022-02-27 03:19:20 +00:00
|
|
|
register: gitlab_restart
|
|
|
|
failed_when: gitlab_restart_handler_failed_when | bool
|
|
|
|
|
|
|
|
- name: restart_noggin
|
2022-03-28 05:01:23 +00:00
|
|
|
ansible.builtin.service:
|
2022-02-27 03:19:20 +00:00
|
|
|
name: noggin
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: rehash_postfix_sasl
|
2023-04-22 01:28:46 +00:00
|
|
|
ansible.builtin.command: "postmap /etc/postfix/sasl_passwd"
|
2022-02-27 03:19:20 +00:00
|
|
|
|
|
|
|
- name: restart_postfix
|
2022-03-28 05:01:23 +00:00
|
|
|
ansible.builtin.service:
|
2022-02-27 03:19:20 +00:00
|
|
|
name: postfix
|
|
|
|
state: restarted
|
2022-07-15 20:44:41 +00:00
|
|
|
|
|
|
|
- name: restart_rsyncd
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: rsyncd
|
|
|
|
state: restarted
|
2023-04-22 07:57:00 +00:00
|
|
|
|
2023-07-15 07:10:52 +00:00
|
|
|
- name: restart_rabbitmq
|
2023-07-16 01:51:26 +00:00
|
|
|
ansible.builtin.systemd:
|
2023-07-15 07:10:52 +00:00
|
|
|
name: rabbitmq-server
|
|
|
|
state: restarted
|
2023-07-16 01:51:26 +00:00
|
|
|
daemon_reload: true
|
2023-07-15 07:10:52 +00:00
|
|
|
|
2024-04-02 20:48:55 +00:00
|
|
|
- name: restart_rsyslog
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: rsyslog
|
|
|
|
state: restarted
|
|
|
|
|
2023-04-22 07:57:00 +00:00
|
|
|
- name: enable_crb
|
|
|
|
ansible.builtin.shell: "set -o pipefail && /usr/bin/crb enable"
|
|
|
|
changed_when: "1 != 1"
|
2022-02-27 03:19:20 +00:00
|
|
|
...
|