mirror of
https://github.com/Rushilwiz/brancher.git
synced 2025-04-18 19:10:21 -04:00
added .refresh_server.yml for ansible
This commit is contained in:
parent
e40624976d
commit
4f76de51f2
17
.refresh_server.yml
Normal file
17
.refresh_server.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user