Ansible repository with playbooks to manage azure objects
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

41 satır
896 B

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