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.
 
 
 

31 lignes
706 B

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