title: Can we run multiple modules in ansible using single ad-hoc command?
body: <p>I know it's possible to run multiple adhoc commands one after the other for each module and using playbook.</p>
  
  <p>Playbook:</p>
  
  <hr>
  
  <pre><code>- hosts: webservers
    tasks:
     - name: create .ssh dir
       file: path ~/.ssh state=directory
     - name: copy pub key
       copy: src:~/.ssh/id.rsa_pub dest=~/.ssh/authorized_keys
  </code></pre>
  
  <p>I want the above to execute using adhoc in one line. Is it possible to do so?</p>