Skip to content

Instantly share code, notes, and snippets.

@inish777
Created August 30, 2017 09:16
Show Gist options
  • Save inish777/4c2774bd77971079e1d087c651d4afae to your computer and use it in GitHub Desktop.
Save inish777/4c2774bd77971079e1d087c651d4afae to your computer and use it in GitHub Desktop.
- hosts: webservers
tasks:
- name: checkout chehol git repo
become: true
become_user: chehol
git:
repo: ssh://git@gitlab.aguru.biz:2222/aguru/chehol.pro.git
dest: /home/chehol/chehol.pro
force: yes
tags:
- chehol
- name: build chehol assets
become: true
become_user: chehol
command: gulp
args:
chdir: '/home/chehol/chehol.pro/dev'
tags:
- chehol
- name: reset chehol cloudflare cache
run_once: true
command: >-
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/a150d2b4560353c13bc8f4a2a367e11c/purge_cache"
-H "X-Auth-Email: mail@aguru.biz"
-H "X-Auth-Key: 441870da59ef9ab95c22118006e50472d7e4e"
-H "Content-Type: application/json"
--data '{"purge_everything":true}'
tags:
- chehol
- name: checkout navolne git repo
become: true
become_user: chehol
git:
repo: ssh://git@gitlab.aguru.biz:2222/aguru/navolne.pro.git
dest: /home/chehol/navolne.pro
force: yes
tags:
- navolne
- name: reset navolne cloudflare cache
run_once: true
command: >-
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/4df1d84e91d487e0a643f32acd0951ae/purge_cache"
-H "X-Auth-Email: mail@aguru.biz"
-H "X-Auth-Key: 441870da59ef9ab95c22118006e50472d7e4e"
-H "Content-Type: application/json"
--data '{"purge_everything":true}'
tags:
- navolne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment