ansible-ops-management/handlers/main.yml

60 lines
1.2 KiB
YAML
Raw Normal View History

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
2022-02-27 03:19:20 +00:00
...