Only offer available DigitalOcean regions

This commit is contained in:
David E. Myers 2022-03-11 08:38:05 -05:00
parent 9f241b1886
commit 6702ca2296
No known key found for this signature in database
GPG key ID: D871FCA54815086C

View file

@ -24,7 +24,7 @@
- name: Set facts about the regions - name: Set facts about the regions
set_fact: set_fact:
do_regions: "{{ _do_regions.json.regions | sort(attribute='slug') }}" do_regions: "{{ _do_regions.json.regions | selectattr('available', 'true') | sort(attribute='slug') }}"
- name: Set default region - name: Set default region
set_fact: set_fact: