refactor: move into a website directory

This commit is contained in:
Oliver Davies 2022-07-13 18:09:09 +01:00
parent 86529d7148
commit 3c5c0e808a
747 changed files with 133 additions and 2 deletions

2
ansible/ansible.cfg Normal file
View file

@ -0,0 +1,2 @@
[defaults]
inventory = ./hosts.ini

14
ansible/deploy.yml Normal file
View 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
View file

@ -0,0 +1,5 @@
[web]
18.132.197.147
[web:vars]
ansible_user=ubuntu