Ansible repository with playbooks to manage azure objects
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
658 B

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