summaryrefslogtreecommitdiff
path: root/roles/x509/static/cert/prepare/handlers/main.yml
blob: 589d6dde894b6cdff5120d7bc47ea67fb78b6163 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: reload services for x509 certificates
  loop: "{{ x509_certificate_reload_services | default([]) }}"
  loop_control:
    loop_var: x509_certificate_reload_service
  service:
    name: "{{ x509_certificate_reload_service }}"
    state: reloaded

- name: restart services for x509 certificates
  loop: "{{ x509_certificate_restart_services | default([]) }}"
  loop_control:
    loop_var: x509_certificate_restart_service
  service:
    name: "{{ x509_certificate_restart_service }}"
    state: restarted