# 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=dev) # (e.g. service=prometheus) # usage: # export HETZNER_LABEL_SELECTOR='stage=dev' # ansible-playbook -i stage-netgo-hcloud.yml ... plugin: netgo-hcloud api_token_dev: !vault | $ANSIBLE_VAULT;1.1;AES256 31303065663564373265333132646634653566653234396232343765623232363964343231643663 3835363666633435373336656530323966653062336536320a653364393835313130383363633339 34303066646133336530313339386662363933636137363761616532653336396437643761346338 3036313364326534650a653333326539333462636430333838633965336538646132303262346365 65656237386630376262646637666237383864333436383063373834663438306231346262666662 64666665353434623139373563653131306437616636316236326537303532626266356530643966 31343633343639306138656262313330623165326531356239383739623065633930663234343265 33343035363263613035 api_token_qa: !vault | $ANSIBLE_VAULT;1.1;AES256 36326436363431623035633730393332623665663439613835373436636637393838333865646564 6461343366393765383332323662326339623836336566660a666462633333613236663362643835 39313166323139616162353366303839346664386237306562306363333731626338316134396561 3435316335343534620a396432353430396138343933663866613730333564646639323935366134 37653935313437313263366462643033316662363366353866663664633835376661623737336363 32393431666138303538356138663163303965623339343063353234643664363933663330356237 32386139363033656538646236323237333631626161383966663839303666373266633039363337 64313830353765633865 api_token_prodnso: !vault | $ANSIBLE_VAULT;1.1;AES256 36306565386166663763636235653334366662663538386438383237323362626639386237333565 3237643162633761633236333166363635356263386138330a626335333037333031363230366632 39633263393133653239623738366461336539616133316437316435616663656431333665356265 6531303064353631610a366431343334393063356662326534323462326636306536376432326463 64376462333562396431313535323637336161396139316639656562336430616634353762613430 63646232363237313864383865333235653739386531383265353665633935316336313038363133 32366235386335643963306161393235343338383338616433623064653932333861643630663939 34643235356465383131