unmount.yml 414 B

12345678910111213141516171819
  1. ---
  2. - name: Ensure /data is not mounted
  3. hosts: initiators
  4. become: true
  5. tasks:
  6. - name: the new device is not mounted
  7. mount:
  8. path: /data
  9. state: absent
  10. - name: the iSCSI target is disconnected
  11. open_iscsi:
  12. portal: 172.25.250.13
  13. port: '3260'
  14. target: iqn.2014-06.com.example:serverd
  15. discover: no
  16. login: no
  17. auto_node_startup: no