added .refresh_server.yml for ansible

This commit is contained in:
Rushil Umaretiya 2020-04-02 15:06:49 -04:00
parent e40624976d
commit 4f76de51f2

17
.refresh_server.yml Normal file
View File

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