fixed ip variables, now using inventory vars

This commit is contained in:
2024-11-26 13:09:26 +01:00
parent fe04b3fe87
commit 158048f51d
4 changed files with 11 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ DEPLOY_COMMAND = ansible-playbook deploy.yaml $(OPTIONS)
CLEAN_COMMAND = ansible-playbook cleanup.yaml $(OPTIONS)
HOSTS_COMMAND = ansible-playbook knownhosts.yaml $(OPTIONS)
DEBUG_COMMAND = ansible-playbook debug.yaml $(OPTIONS)
SHOW_COMMAND = ansible-inventory -i inventory/hosts.hcloud.yaml --list
ENV = HCLOUD_TOKEN="$(TOKEN)" SNAPSHOT="$(SNAPSHOT)" ANSIBLE_VERBOSITY=$(verbose)
@@ -49,3 +50,6 @@ editvars:
showvars:
ansible-vault decrypt $(VARS) --output -
showinventory:
$(ENV) $(SHOW_COMMAND)