# dynamic inventory for hetzner which reads the stage variable from environment # # parameters: # HETZNER_CLOUD_TOKEN := hetzner cloud api token # HETZNER_LABEL_SELECTOR := the label selector to use (note: multiple selectors are not supported by rest api) # (e.g. stage=devnso) # (e.g. service=prometheus) # usage: # export HETZNER_LABEL_SELECTOR='stage=devnso' # ansible-playbook -i stage-netgo-hcloud.yml ... plugin: netgo-hcloud stage: "prodwork01" stage_kube: "prodwork01" label_selector: "stage=prodwork01" # jinja isn't available here api_token: !vault | $ANSIBLE_VAULT;1.1;AES256 66323932633666303838616633353233303231323165623833663031333432363062356562303432 3437396534333339393531613066343335383639613838300a616430336637316534343333336566 63353732666661353435393834376565666161643063356135663661303861383966333162653633 3133306365323838370a636539636466393961616165333034623836656137613231326261366436 32333836643966346332613465313661373662613834313465636332383431363761383463393436 37663337346465323237663236343638333534396336393139666364666365613835623533623063 66663635613438393936663662396236393131323830636332643966326539636231383062396436 6664386466373061663222222