You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
570 B
YAML
30 lines
570 B
YAML
---
|
|
- 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
|