- name: ensure mod_md is installed package: name: mod_md state: present tags: - install - name: ensure mod_md is configured template: src: mod_md.conf.j2 dest: /etc/httpd/conf.d/01-mod_md.conf owner: root group: root mode: u=rw,go=r notify: - reload httpd tags: - config - name: ensure mod_md notify script is installed copy: src: md-notify.sh dest: /usr/local/libexec/md-notify owner: root group: root mode: u=rwx,go=rx tags: - notify-script - name: ensure httpd-reload systemd units are installed copy: src: '{{ item }}' dest: /etc/systemd/system/{{ item }} owner: root group: root mode: u=rw,go=r loop: - httpd-reload.path - httpd-reload.service notify: reload systemd tags: - systemd - name: ensure httpd-reload.path unit is enabled systemd: name: httpd-reload.path enabled: true tags: - service - name: ensure httpd-reload.path unit is active systemd: name: httpd-reload.path state: started tags: - service