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

33 行
765 B

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