21 lines
364 B
Markdown
21 lines
364 B
Markdown
# Ansible PostgreSQL example
|
|
|
|
This example will deploy two nodes: a writer in the US and a reader in Canada.
|
|
|
|
## Steps
|
|
|
|
To create VMs, run:
|
|
```
|
|
./create_vms.sh
|
|
```
|
|
|
|
After that, deploy the ansible playbook by running:
|
|
```
|
|
ansible-playbook -i tmp/inventory.ini deploy_postgres.yaml
|
|
```
|
|
|
|
You can inspect the VMs that got created by running:
|
|
```
|
|
detee-cli vm list
|
|
```
|