Add cleaning after action
This commit is contained in:
parent
de12efa1f0
commit
7e1e5f4422
|
@ -8,3 +8,20 @@
|
||||||
tags:
|
tags:
|
||||||
- install
|
- 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
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
group: "{{ item.account }}"
|
group: "{{ item.account }}"
|
||||||
loop: "{{ ghost }}"
|
loop: "{{ ghost }}"
|
||||||
become: yes
|
become: yes
|
||||||
become_user : "{{ item.account }}"
|
become_user: "{{ item.account }}"
|
||||||
when: ghost_deploy_site in item.name
|
when: ghost_deploy_site in item.name
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
chdir: "{{ item.home }}"
|
chdir: "{{ item.home }}"
|
||||||
loop: "{{ ghost }}"
|
loop: "{{ ghost }}"
|
||||||
become: yes
|
become: yes
|
||||||
become_user : "{{ item.account }}"
|
become_user: "{{ item.account }}"
|
||||||
when: ghost_deploy_site in item.name
|
when: ghost_deploy_site in item.name
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
|
@ -40,10 +40,12 @@
|
||||||
chdir: "{{ item.home }}"
|
chdir: "{{ item.home }}"
|
||||||
loop: "{{ ghost }}"
|
loop: "{{ ghost }}"
|
||||||
become: yes
|
become: yes
|
||||||
become_user : "{{ item.account }}"
|
become_user: "{{ item.account }}"
|
||||||
when: ghost_deploy_site in item.name
|
when: ghost_deploy_site in item.name
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
notify:
|
notify:
|
||||||
- Restart service
|
- Restart service
|
||||||
|
- Clean cache yarn
|
||||||
|
- NPM Cache clean
|
||||||
|
|
||||||
|
|
|
@ -11,3 +11,5 @@
|
||||||
- update
|
- update
|
||||||
notify:
|
notify:
|
||||||
- Restart service
|
- Restart service
|
||||||
|
- Clean cache yarn
|
||||||
|
- NPM Cache clean
|
||||||
|
|
Loading…
Reference in New Issue