Update ghost-cli on update
This commit is contained in:
parent
7e1e5f4422
commit
477a5bbc99
|
@ -1,4 +1,15 @@
|
||||||
---
|
---
|
||||||
|
- 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
|
||||||
|
|
||||||
- name: "Update Ghost"
|
- name: "Update Ghost"
|
||||||
ansible.builtin.shell: "{{ item.home }}/node_modules/.bin/ghost update {{ version | default('') }} --dir www --no-prompt "
|
ansible.builtin.shell: "{{ item.home }}/node_modules/.bin/ghost update {{ version | default('') }} --dir www --no-prompt "
|
||||||
args:
|
args:
|
||||||
|
|
Loading…
Reference in New Issue