added dns using hetzner dns, renamed pubnix => pub
This commit is contained in:
5
Makefile
5
Makefile
@@ -4,8 +4,9 @@
|
||||
VARS = group_vars/all/vars.yaml
|
||||
VALL = group_vars/all/all.yaml
|
||||
SECRET = ~/.config/ansible/hcloud.secret
|
||||
KEYDIR = roles/pubnix/files/keys
|
||||
KEYDIR = roles/pub/files/keys
|
||||
TOKEN = $(shell ansible-vault decrypt --output - $(VARS) | grep hetzner_cloud_token | cut -d' ' -f2)
|
||||
DNSTOKEN = $(shell ansible-vault decrypt --output - $(VARS) | grep hetzner_dns_token | cut -d' ' -f2)
|
||||
SNAPNAME = $(shell cat $(VALL) | yq .snapshot)
|
||||
|
||||
SNAPSHOT = $(shell hcloud image list -t snapshot -o yaml | \
|
||||
@@ -19,7 +20,7 @@ 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)
|
||||
ENV = HCLOUD_TOKEN="$(TOKEN)" HETZNER_DNS_TOKEN="$(DNSTOKEN)" SNAPSHOT="$(SNAPSHOT)" ANSIBLE_VERBOSITY=$(verbose)
|
||||
|
||||
all: create deploy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user