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
947 B

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