Use VULTR_API_CONFIG variable if set

This commit is contained in:
David E. Myers 2019-03-25 08:35:04 -04:00
parent d996b1d02f
commit ae467c2745
No known key found for this signature in database
GPG key ID: D871FCA54815086C

View file

@ -4,7 +4,9 @@
Enter the local path to your configuration INI file Enter the local path to your configuration INI file
(https://trailofbits.github.io/algo/cloud-vultr.html): (https://trailofbits.github.io/algo/cloud-vultr.html):
register: _vultr_config register: _vultr_config
when: vultr_config is undefined when:
- vultr_config is undefined
- lookup('env','VULTR_API_CONFIG')|length <= 0
- name: Set the token as a fact - name: Set the token as a fact
set_fact: set_fact: