title: Running db2relocatedb with ansible
body: <p>I have this ansible playbook:</p>
  
  <pre><code> ---
   - hosts: all
     gather_facts: False
     become: yes
     become_user: myins
     become_method: sudo
  
     tasks:
  
       - name: test someting
         command: "cd /db2/myins"
  
       - name: relocate it 
         command: "db2relocatedb -f /db2/myins/relocate.cfg"
  
   ...
  </code></pre>
  
  <p>if I run the command by itself it works and if I use cat /db2/myins/relocate.cfg instead of db2relocatedb -f it works too.</p>
  
  <p>If I run it like this I get:</p>
  
  <pre><code> The full traceback is:
   WARNING: The below traceback may *not* be related to the actual failure.
   File "/tmp/ansible_command_payload_HGHkvR/ansible_command_payload.zip/ansible/module_utils/basic.py", line 2561, in run_command
  cmd = subprocess.Popen(args, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
  errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
  raise child_exception
  
  fatal: [mounttest]: FAILED! =&gt; {
  "changed": false,
  "cmd": "db2relocatedb -f /db2/myins/relocate.cfg",
  "invocation": {
      "module_args": {
          "_raw_params": "db2relocatedb -f /db2/myins/relocate.cfg",
          "_uses_shell": false,
          "argv": null,
          "chdir": null,
          "creates": null,
          "executable": null,
          "removes": null,
          "stdin": null,
          "stdin_add_newline": true,
          "strip_empty_ends": true,
          "warn": true
      }
  },
  "msg": "[Errno 2] No such file or directory",
  "rc": 2
   }
  </code></pre>
  
  <p>Why can I cat the file but not use it?</p>
  
  <p>Thanks,
  Arengin</p>