Remove configure systemd from install and add specific tag

stable
Dryusdan 9 months ago
parent 93147b3def
commit de12efa1f0

@ -0,0 +1,29 @@
---
- 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

@ -47,27 +47,3 @@
notify:
- Restart service
- 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
- name: "Reload systemctl"
systemd:
daemon_reload: yes
tags:
- install
- name: "Enable service"
systemd:
name: "{{ item.name }}.service"
enabled: yes
loop: "{{ ghost }}"
when: ghost_deploy_site in item.name
tags:
- install

@ -9,6 +9,12 @@
tags:
- configure
- include_tasks: configure_systemd.yml
when: ansible_os_family == 'Debian'
tags:
- install
- configure_systemd
- include_tasks: update.yml
when: ansible_os_family == 'Debian'
tags:

Loading…
Cancel
Save