2022-05-02 17:33:47 +02:00
|
|
|
---
|
2023-04-24 06:47:53 +02:00
|
|
|
- name: "Update ghost-cli"
|
|
|
|
ansible.builtin.shell: /usr/bin/npm install ghost-cli
|
|
|
|
args:
|
|
|
|
chdir: "{{ item.home }}"
|
|
|
|
loop: "{{ ghost }}"
|
|
|
|
become: yes
|
|
|
|
become_user: "{{ item.account }}"
|
|
|
|
when: ghost_deploy_site in item.name
|
|
|
|
tags:
|
|
|
|
- update
|
|
|
|
|
2022-05-02 17:33:47 +02:00
|
|
|
- name: "Update Ghost"
|
|
|
|
ansible.builtin.shell: "{{ item.home }}/node_modules/.bin/ghost update {{ version | default('') }} --dir www --no-prompt "
|
|
|
|
args:
|
|
|
|
chdir: "{{ item.home }}"
|
|
|
|
loop: "{{ ghost }}"
|
|
|
|
become: yes
|
|
|
|
become_user : "{{ item.account }}"
|
|
|
|
when: ghost_deploy_site in item.name
|
|
|
|
tags:
|
|
|
|
- update
|
|
|
|
notify:
|
|
|
|
- Restart service
|
2023-01-23 17:22:46 +01:00
|
|
|
- Clean cache yarn
|
|
|
|
- NPM Cache clean
|