From 477a5bbc99389675a2a572c1dd67995c2da4e95e Mon Sep 17 00:00:00 2001 From: Dryusdan Date: Mon, 24 Apr 2023 06:47:53 +0200 Subject: [PATCH] Update ghost-cli on update --- tasks/update.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tasks/update.yml b/tasks/update.yml index 3faa234..5bd2f49 100644 --- a/tasks/update.yml +++ b/tasks/update.yml @@ -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" ansible.builtin.shell: "{{ item.home }}/node_modules/.bin/ghost update {{ version | default('') }} --dir www --no-prompt " args: