Skip to content

Commit ef6409e

Browse files
author
Georgi
committed
Update readme's to guide to the right ansible hosts file
1 parent 4b18646 commit ef6409e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ _Before running this script, you need to create a ops/hosts file first. See the
8888
This script will:
8989
- Build release Webpack bundles
9090
- Package the .NET Core application in Release mode (dotnet publish)
91-
- Run the ops/deploy.yml Ansible playbook to deploy this app to hosts in /ops/hosts inventory file.
91+
- Run the ops/deploy.yml Ansible playbook to deploy this app to hosts in /ops/config.yml inventory file.
9292

9393
This does the following:
9494
- Copies the build assets to the remote host(s)
95-
- Updates the `appsettings.json` file with PostgreSQL credentials specified in ops/hosts file and the app URL (needed for JWT tokens)
95+
- Updates the `appsettings.json` file with PostgreSQL credentials specified in ops/group_vars/all file and the app URL (needed for JWT tokens)
9696
- Restarts the app so that changes will be picked up
9797

9898
## Development Email Delivery

ops/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ This folder contains [Ansible](https://www.ansible.com/) assets responsible for
44

55
1. Procure access to Ubuntu 16.04 (Xenial) or Ubuntu 18.04 (Bionic) host which will be used to host this application. [AWS](aws.amazon.com) or [Digital Ocean](https://m.do.co/c/974ef9a471c1) are good options.
66
2. Setup DNS records to point to these host(s).
7-
3. Create `hosts` file in this directory, using `hosts.example` as a pattern.
7+
3. Create `config.yml` file in this directory, using `config.yml.example` as a pattern.
88

99
## Usage
1010

1111
From the root of this respository, run one of the following commands:
12-
- `npm run provision:prod`: This will provision all production hosts specified in hosts file.
13-
- `npm run deploy:prod`: This will deploy the app to all production hosts specified in hosts file.
12+
- `npm run provision:prod`: This will provision all production hosts specified in config.yml file.
13+
- `npm run deploy:prod`: This will deploy the app to all production hosts specified in config.yml file.
1414

1515
## Notes
1616
- The deploy.yml and provision.yml playbooks were written against and tested on Ubuntu 16.
17-
- The [Ansible Best Practices](http://docs.ansible.com/ansible/playbooks_best_practices.html) document demonstrates using /groups_vars/... for application environment variables (i.e. production / staging) and /group_vars/all for global variables. However, we are using inventory group variables, all contained within the inventory file (hosts) to define environment and global variables. Because of this, all the variables are in a single location and easily managed.
17+
- The [Ansible Best Practices](http://docs.ansible.com/ansible/playbooks_best_practices.html) document demonstrates using /groups_vars/... for application environment variables (i.e. production / staging) and /group_vars/all for global variables. However, we are using inventory group variables, all contained within the inventory file (config.yml) to define environment and global variables. Because of this, all the variables are in a single location and easily managed.

0 commit comments

Comments
 (0)