ghost/tasks/configure_systemd.yml

30 lines
570 B
YAML
Raw Normal View History

---
- name: "Config daemon"
template:
src: "systemd.service.j2"
dest: "/etc/systemd/system/{{ item.name }}.service"
loop: "{{ ghost }}"
when: ghost_deploy_site in item.name
tags:
- install
- configure_systemd
notify:
- Restart service
- name: "Reload systemctl"
systemd:
daemon_reload: yes
tags:
- install
- configure_systemd
- name: "Enable service"
systemd:
name: "{{ item.name }}.service"
enabled: yes
loop: "{{ ghost }}"
when: ghost_deploy_site in item.name
tags:
- install
- configure_systemd