You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
400 B
YAML
16 lines
400 B
YAML
---
|
|
- 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
|
|
- Clean cache yarn
|
|
- NPM Cache clean
|