Ansible repository with playbooks to manage azure objects
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ů.
 
 
 

41 řádky
920 B

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