Ansible Mount Absent - 错误卸载/ var:umount:/ var:设备正忙

时间:2016-05-19 06:35:42

标签: ansible mount

我正在尝试使用Ansible从<plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>${jetty.version}</version> <configuration> ... <env> <wibble>pencil</wibble> <foo>bar</foo> <black>white</black> </env> ... </configuration> </plugin> 删除/var而不尝试卸载分区,我将使用重启来使更改生效:

/etc/fstab

当我运行ansible playbook时,它会抛出一个错误:

- name: Remove Default /var Mount
  mount: state=absent src=/dev/mapper/vg00-lv_var name=/var fstype=ext4 opts=defaults,acl,user_xattr,nosuid 

Ansible Mount模块文档说:

TASK [partitions : Remove Default /var Mount] ********************************** fatal: [docker-001]: FAILED! => { "changed": false, "failed": true, "msg": "Error unmounting /var: umount: /var: device is busy.\n (In some cases useful info about processes that use\n the device is found by lsof(8) or fuser(1))\n"} absent仅处理fstab,但会影响当前的挂载。

http://docs.ansible.com/ansible/mount_module.html

因此它不应该尝试卸载分区,它应该只从present文件中删除它。

我正在运行ansible:

ansible --version

/etc/fstab

0 个答案:

没有答案