Ansible repository with playbooks to manage azure objects
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

31 行
664 B

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