From e6ba5fa2ee35221cd1c50170e17ee39c36a4ae77 Mon Sep 17 00:00:00 2001 From: Dryusdan Date: Sun, 24 Jan 2021 17:05:02 +0100 Subject: [PATCH] Replace all .key --- tasks/main.yml | 38 +++++++++++------------ templates/.config.production.json.j2.swp | Bin 12288 -> 0 bytes 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 templates/.config.production.json.j2.swp diff --git a/tasks/main.yml b/tasks/main.yml index 10fdf18..0490c2d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -17,7 +17,7 @@ loop: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Add blog log directory" file: @@ -33,7 +33,7 @@ owner: "{{ item.account }}" group: "{{ item.account }}" loop: "{{ ghost }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Download Ghost" get_url: @@ -43,14 +43,14 @@ loop: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Delete www" file: path: "{{ item.home }}/www" state: absent loop: "{{ ghost }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Unzip Ghost" shell: "unzip -o ghost-latest.zip -d www" @@ -59,7 +59,7 @@ loop: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Unzip content folder Ghost" shell: "unzip -o ghost-latest.zip 'content/*' -d ./" @@ -68,14 +68,14 @@ with_dict: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Delete content" file: path: "{{ item.home }}/www/content" state: absent loop: "{{ ghost }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Symlink content" file: @@ -85,7 +85,7 @@ owner: "{{ item.account }}" group: "{{ item.account }}" loop: "{{ ghost }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name become: yes become_user : "{{ item.account }}" @@ -96,14 +96,14 @@ owner: "{{ item.account }}" group: "{{ item.account }}" loop: "{{ ghost }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Config daemon" template: src: "systemd.service.j2" dest: "/etc/systemd/system/{{ item.name }}.service" loop: "{{ ghost }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Install node modules" shell: "NODE_ENV=production npm i" @@ -112,7 +112,7 @@ loop: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Install yarn module" shell: "NODE_ENV=production yarn install" @@ -121,7 +121,7 @@ loop: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Knex init" shell: "NODE_ENV=production node_modules/knex-migrator/bin/knex-migrator init" @@ -130,7 +130,7 @@ loop: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Knex migrate" shell: "NODE_ENV=production node_modules/knex-migrator/bin/knex-migrator migrate" @@ -139,7 +139,7 @@ loop: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Reload systemctl" systemd: @@ -150,21 +150,21 @@ name: "{{ item.name }}.service" enabled: yes loop: "{{ ghost }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Restart service" systemd: name: "{{ item.name }}.service" state: restarted loop: "{{ ghost }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Delete archive" file: path: "{{ item.home }}/ghost-latest.zip" state: absent loop: "{{ ghost }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "Clean cache yarn" shell: "yarn cache clean" @@ -173,7 +173,7 @@ loop: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name - name: "NPM Cache clean" shell: "npm cache clean --force" @@ -182,4 +182,4 @@ loop: "{{ ghost }}" become: yes become_user : "{{ item.account }}" - when: ghost_deploy_site in item.key + when: ghost_deploy_site in item.name diff --git a/templates/.config.production.json.j2.swp b/templates/.config.production.json.j2.swp deleted file mode 100644 index 7bb94c23914b5b82dfe232ba53cb7c7b40aeaf77..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2!D|#r6vj)Bt1)88$xGQ1@SxKsBE*1;hlM4YK+xz#M0=)dCapbPy;ao-!!R!5 zQSh*b_29*mUIgzVNMQG_9=s}hSeAwT4;Jxz)!oU=#00O(YxugSU%mJ0)vsP3LaKTC z+TyaDZ_El@hlRNC`^2ry>4xYo3K3;CX{L%s_Pmyhv=N(LVdE%kw9T%*cdLY9o<_Z< z)_20rnzk-ws`^2wU%>HUY=c?zvv1j$l4<^6_ zm;e)C0!)AjFaajO1egF5U;<3w8zd0LLM;9O9YFE;|9}1W|EEbIK0vRa7tjM}0BL9m zIsqMrrl9{13Gol~2lNDT&}C=|`Wc#sBy<#-g#Min;w|(XdJGxp5_Aqa2z@*##Czxs zvyZgl-Koy{)-1B9WKk{-$vn(w#!KfB6J?RD!LGP~9j=Z;}<;Qj;K0OjcNB zXr57DvXXDj2#!(V7h1ybp~Rh*Qf+%R3yg>y3Z%2oJ7*y4_6&i}33lBbn67PfcV`q? zhoVMEU0GgTsR{-t@bt}CR%Jn0oF(NZP8fS6GAVynSCjMXG-Yd=EGfWaU)$$Hf4 zjr!KagE(?gGqP&9*0@PEB9<<6h_xHq_(rT*#ZA8*WZqs5e8+bKe&bsajPr!g7)*S0 z8JcFKds}Hj-ywFo+q1u