Jim Rigsbee
2020-01-24 c9922e521295fc100c453bb1aed1db3326972042
Ansible Skylight: make lifecycle more robust for duplicate starts/stops
1 files modified
3 ■■■■■ changed files
ansible/configs/ansible-skylight/lifecycle.yml 3 ●●●●● patch | view | raw | blame | history
ansible/configs/ansible-skylight/lifecycle.yml
@@ -68,6 +68,7 @@
        filters:
          "tag:guid": "{{ guid }}"
          "tag:env_type": "{{ env_type }}"
          instance-state-name: running
    - name: Start instances by (guid, env_type) tags
      when: ACTION == 'start'
@@ -77,6 +78,8 @@
        filters:
          "tag:guid": "{{ guid }}"
          "tag:env_type": "{{ env_type }}"
          instance-state-name: stopped
      ignore_errors: true
    - when: ACTION == 'status'
      block: