refactor: move into a website directory
This commit is contained in:
parent
86529d7148
commit
3c5c0e808a
747 changed files with 133 additions and 2 deletions
2
ansible/ansible.cfg
Normal file
2
ansible/ansible.cfg
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[defaults]
|
||||
inventory = ./hosts.ini
|
||||
14
ansible/deploy.yml
Normal file
14
ansible/deploy.yml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- hosts: web
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: Update the code
|
||||
git:
|
||||
repo: https://github.com/opdavies/oliverdavies.uk
|
||||
dest: ~/oliverdavies.uk
|
||||
|
||||
- name: Pull the latest images and re-generate the site.
|
||||
shell: ./run run-production
|
||||
args:
|
||||
chdir: ~/oliverdavies.uk
|
||||
5
ansible/hosts.ini
Normal file
5
ansible/hosts.ini
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[web]
|
||||
18.132.197.147
|
||||
|
||||
[web:vars]
|
||||
ansible_user=ubuntu
|
||||
Loading…
Add table
Add a link
Reference in a new issue