summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2026-01-02 13:16:35 +0000
committerMatthew Fennell <matthew@fennell.dev>2026-01-02 13:16:35 +0000
commitc1a5a58d20488272bf0bcc4c4dc2ca11a8ea8fdb (patch)
tree458a7ca340c7920f56d6e5e5f98b9ed92debee0e /Makefile
parent4daadd054bcaddff2ac9260b6cebcd31edc95da4 (diff)
Define all hosts in a single inventory
I previously had separate inventories for each environment: prod, transport and staging, with each inventory having a single xmpp_server group. I want to start adopting group_vars so that I can share common variables between hosts, so I've moved all hosts into a common hosts.yaml file with groups for each environment. This means there is no longer an xmpp_server group, and all hosts are in a single inventory. Adjust the playbook to account for this.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index de74f4f..d131e5e 100644
--- a/Makefile
+++ b/Makefile
@@ -10,16 +10,16 @@ check:
make staging
staging:
- ansible-playbook --forks 1 --inventory inventory/staging.ini playbook.yaml \
- --diff
+ ansible-playbook --forks 1 --inventory inventory/hosts.yaml --limit staging \
+ playbook.yaml --diff
prod:
- ansible-playbook --forks 1 --inventory inventory/prod.ini --inventory \
- inventory/transport.ini playbook.yaml --diff
+ ansible-playbook --forks 1 --inventory inventory/hosts.yaml --limit prod \
+ playbook.yaml --diff
transport:
- ansible-playbook --forks 1 --inventory inventory/transport.ini \
- playbook.yaml --diff
+ ansible-playbook --forks 1 --inventory inventory/hosts.yaml --limit \
+ transport playbook.yaml --diff
lint:
precious --ascii lint --all