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.
 
 
 

41 lignes
968 B

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