brancher/.refresh_server.yml
2020-07-09 23:03:31 -04:00

18 lines
357 B
YAML

---
- hosts: webservers
remote_user: root
tasks:
- name: fetch latest from github repo
git:
repo: git@github.com:RushilSidhu/brancher.git
version: master
dest: /var/www/brancher.me/html
accept_hostkey: yes
key_file: ~/.ssh/brancher_rsa
- name: restart nginx
service:
name: nginx
state: restarted