Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

43 řádky
1.1 KiB

  1. - name: Include hosting vars of digital_ocean.yml
  2. include_vars:
  3. file: /var/lib/awx/projects/hosting/hosting_vars.yml
  4. no_log: True
  5. - name: Load vars from organisation.yml
  6. include_vars:
  7. file: '/var/lib/awx/projects/clients/{{ member_id }}/organisation.yml'
  8. - name: Load vars from server_vars.yml
  9. include_vars:
  10. file: '/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/server_vars.yml'
  11. ignore_errors: yes
  12. - name: Remove existing Digital Ocean Droplet
  13. community.digitalocean.digital_ocean_droplet:
  14. # needs ansible 2.8+ (AWX uses 2.9.10 at )
  15. state: absent
  16. id: '{{ do_droplet_id }}'
  17. name: '{{ matrix_domain }}'
  18. oauth_token: '{{ do_api_token }}'
  19. size: '{{ slug_size }}'
  20. region: '{{ do_droplet_region }}'
  21. image: '{{ do_image }}'
  22. wait: yes
  23. unique_name: yes
  24. register: deleted_server_info
  25. when: do_droplet_id is defined
  26. - debug:
  27. msg: "{{ deleted_server_info }}"
  28. when: do_droplet_id is defined
  29. #- name: Delete fake DNS record for faster testing
  30. # delegate_to: 127.0.0.1
  31. # shell: |
  32. # sed -i -c '/{{ matrix_domain }}/d' /etc/hosts
  33. # Doesn't allow letsencrypt to generate certs :S