ghost/handlers/main.yml

28 lines
597 B
YAML

---
- name: "Restart service"
systemd:
name: "{{ item.name }}.service"
state: restarted
loop: "{{ ghost }}"
when: ghost_deploy_site in item.name
tags:
- install
- 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