2022-05-02 17:33:47 +02:00
|
|
|
---
|
|
|
|
- name: "Restart service"
|
|
|
|
systemd:
|
|
|
|
name: "{{ item.name }}.service"
|
|
|
|
state: restarted
|
|
|
|
loop: "{{ ghost }}"
|
|
|
|
when: ghost_deploy_site in item.name
|
|
|
|
tags:
|
|
|
|
- install
|
|
|
|
|
2023-01-23 17:22:46 +01:00
|
|
|
- name: "Clean cache yarn"
|
|
|
|
shell: "yarn cache clean"
|
|
|
|
args:
|
|
|
|
chdir: "{{ item.home }}/"
|
|
|
|
become: yes
|
|
|
|
become_user: "{{ item.account }}"
|
|
|
|
loop: "{{ ghost }}"
|
|
|
|
when: ghost_deploy_site in item.name
|
|
|
|
|
|
|
|
- name: "NPM Cache clean"
|
|
|
|
shell: "npm cache clean --force"
|
|
|
|
args:
|
|
|
|
chdir: "{{ item.home }}/"
|
|
|
|
become: yes
|
|
|
|
become_user: "{{ item.account }}"
|
|
|
|
loop: "{{ ghost }}"
|
|
|
|
when: ghost_deploy_site in item.name
|