title: How can eval command work in ansible playbook
body: <p>I want to eval command via ansible playbook. Here's playbook.</p>
  
  <pre><code> - name: enable ssh-agent
     command: eval $(ssh-agent)
  </code></pre>
  
  <p>I tried this playbook.</p>
  
  <pre><code>$ ansible-playbook -i hosts site.yml
  </code></pre>
  
  <p>But I got this error.</p>
  
  <pre><code>failed: [host] =&gt; {"cmd": "eval", "failed": true, "rc": 2}
  msg: [Errno 2] No such file or directory
  
  FATAL: all hosts have already failed -- aborting
  </code></pre>
  
  <p>How eval command work in ansible playbook?
  Thanks in advance.</p>