Ansible Mount Absent - Error unmounting /var: umount: /var: device is busy
<p>I am trying to use Ansible to remove <code>/var</code> from <code>/etc/fstab</code> without attempting to unmount the partition, I will use a reboot to make the change take affect :</p>

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

<p>When I run the ansible playbook it throws an error :</p>

<pre><code>TASK [partitions : Remove Default /var Mount] **********************************
fatal: [docker-001]: FAILED! =&gt; {
"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"}
</code></pre>

<p>The Ansible Mount module documentation says :</p>

<p><code>absent</code> and <code>present</code> only deal with fstab but will <strong>not</strong> affect current mounting.</p>

<p><a href="http://docs.ansible.com/ansible/mount_module.html" rel="nofollow">http://docs.ansible.com/ansible/mount_module.html</a></p>

<p>So it should not be attempting to unmount the partition, it should just remove it from the <code>/etc/fstab</code> file.</p>

<p>I am running ansible :</p>

<p><strong>ansible --version</strong></p>

<pre><code>ansible 2.0.1.0
  config file = /Users/xxxxxx/.ansible.cfg
  configured module search path = Default w/o overrides
</code></pre>