Start of an Ansible playbook

Yep yep, we're getting deploy tasks set up! :3
This commit is contained in:
Emi Matchu 2021-11-02 14:45:05 -07:00
parent 7205455ccb
commit a915bc4b49
4 changed files with 11 additions and 0 deletions

2
deploy/README Normal file
View file

@ -0,0 +1,2 @@
Impress 2020 is deployed to a VPS server. We use this Ansible Playbook to
automate the environment setup!

2
deploy/inventory.cfg Normal file
View file

@ -0,0 +1,2 @@
# There is currently only one impress-2020 box in our Ansible inventory!
impress-2020-box.openneo.net

6
deploy/setup.yml Normal file
View file

@ -0,0 +1,6 @@
---
- name: My task
hosts: all
tasks:
- name: Leaving a mark
command: "touch /tmp/ansible_was_here"

View file

@ -66,6 +66,7 @@
"vercel-build": "yum install libuuid-devel libmount-devel && cp /lib64/{libuuid,libmount,libblkid}.so.1 node_modules/canvas/build/Release/", "vercel-build": "yum install libuuid-devel libmount-devel && cp /lib64/{libuuid,libmount,libblkid}.so.1 node_modules/canvas/build/Release/",
"test": "jest test --env=jsdom", "test": "jest test --env=jsdom",
"lint": "next lint --dir src --dir pages", "lint": "next lint --dir src --dir pages",
"deploy-setup": "ansible-playbook -i deploy/inventory.cfg deploy/setup.yml",
"cypress": "cypress open", "cypress": "cypress open",
"mysql": "mysql --host=impress.openneo.net --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD) --database=openneo_impress", "mysql": "mysql --host=impress.openneo.net --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD) --database=openneo_impress",
"mysql-dev": "mysql --host=localhost --user=impress_2020_dev --password=impress_2020_dev --database=impress_2020_dev", "mysql-dev": "mysql --host=localhost --user=impress_2020_dev --password=impress_2020_dev --database=impress_2020_dev",