69 lines
1.4 KiB
YAML
69 lines
1.4 KiB
YAML
---
|
|
# Handlers
|
|
- name: restart_sshd
|
|
ansible.builtin.service:
|
|
name: sshd
|
|
state: restarted
|
|
|
|
- name: restart_sssd
|
|
ansible.builtin.service:
|
|
name: sssd
|
|
state: restarted
|
|
|
|
- name: restart_httpd
|
|
ansible.builtin.service:
|
|
name: httpd
|
|
state: restarted
|
|
|
|
- name: restart_nginx
|
|
ansible.builtin.service:
|
|
name: nginx
|
|
state: restarted
|
|
|
|
- name: reload_networkmanager
|
|
ansible.builtin.service:
|
|
name: NetworkManager
|
|
state: reloaded
|
|
|
|
- name: regenerate_auditd_rules
|
|
ansible.builtin.command: /sbin/augenrules
|
|
|
|
- name: reload_chrony
|
|
ansible.builtin.systemd:
|
|
name: "{{ chrony_service_name }}"
|
|
state: restarted
|
|
listen: "chrony service restart"
|
|
|
|
- name: restart_gitlab
|
|
ansible.builtin.command: gitlab-ctl reconfigure
|
|
register: gitlab_restart
|
|
failed_when: gitlab_restart_handler_failed_when | bool
|
|
|
|
- name: restart_noggin
|
|
ansible.builtin.service:
|
|
name: noggin
|
|
state: restarted
|
|
|
|
- name: rehash_postfix_sasl
|
|
ansible.builtin.command: "postmap /etc/postfix/sasl_passwd"
|
|
|
|
- name: restart_postfix
|
|
ansible.builtin.service:
|
|
name: postfix
|
|
state: restarted
|
|
|
|
- name: restart_rsyncd
|
|
ansible.builtin.service:
|
|
name: rsyncd
|
|
state: restarted
|
|
|
|
- name: restart_rabbitmq
|
|
ansible.builtin.systemd:
|
|
name: rabbitmq-server
|
|
state: restarted
|
|
daemon_reload: true
|
|
|
|
- name: enable_crb
|
|
ansible.builtin.shell: "set -o pipefail && /usr/bin/crb enable"
|
|
changed_when: "1 != 1"
|
|
...
|