Ansible repository with playbooks to manage azure objects
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

33 lignes
795 B

  1. ---
  2. - name: In virtual network gateway state
  3. include: "{{ item.state | default('present', true) }}.yml"
  4. vars:
  5. vgw: "{{ item }}"
  6. when:
  7. - action is undefined
  8. - (vgws | default([], true) | length) > 0
  9. with_items: "{{ vgws }}"
  10. - name: Update/create virtual network gateway
  11. include: present.yml
  12. vars:
  13. vgw: "{{ item }}"
  14. when:
  15. - action is defined
  16. - action == 'present'
  17. - item.state is undefined
  18. - (vgws | default([], true) | length) > 0
  19. with_items: "{{ vgws }}"
  20. - name: Delete virtual network gateway
  21. include: absent.yml
  22. vars:
  23. vgw: "{{ item }}"
  24. when:
  25. - action is defined
  26. - action == 'absent'
  27. - item.state is undefined
  28. - (vgws | default([], true) | length) > 0
  29. with_items: "{{ vgws }}"
  30. ...