29
handlers/main.yaml
Normal file
29
handlers/main.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
# - name: Log Rotate Configuration files
|
||||
# ansible.builtin.template:
|
||||
# src: definition.j2
|
||||
# dest: "{{ directory_logrotate_config }}/{{ item.name }}"
|
||||
# owner: root
|
||||
# mode: '0644'
|
||||
# force: true
|
||||
# loop: "{{ logrotate_configuration }}"
|
||||
# listen: 'configure_logrotate'
|
||||
# notify: restart_logrotate
|
||||
# when: logrotate_installed | bool
|
||||
|
||||
|
||||
# - name: Restart logrotate
|
||||
# ansible.builtin.service:
|
||||
# name: logrotate
|
||||
# state: restarted
|
||||
# listen: restart_logrotate
|
||||
# when: logrotate_installed | bool
|
||||
|
||||
- name: Restart GLPI
|
||||
community.docker.docker_container:
|
||||
name: "{{ docker_container_name_glpi }}"
|
||||
state: started
|
||||
restart: true
|
||||
listen: restart_glpi
|
||||
when: >
|
||||
glpi_installed | bool
|
||||
Reference in New Issue
Block a user