title: How to source /etc/profile or /etc/bash.bashrc file using Ansible
body: <p>I am trying to source  /etc/profile or /etc/bash.bashrc using Ansible but keep getting error message.</p>
  
  <pre><code>TASK [Source Profile] 
  *********************************************************************
  
  fatal: [localhost]: FAILED! =&gt; {"changed": false, "cmd": "source /etc/profile", _
      "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}
  </code></pre>
  
  <p>my code is </p>
  
  <pre><code>- name: Source Profile
    shell: source /etc/bash.bashrc
    args:
      executable: /bin/bash
  </code></pre>
  
  <p>I tried many other things.</p>
  
  <p>such as <code>command: source /etc/bash.bashrc</code>
  (Also tried <code>/etc/profile</code> instead of <code>/etc/bash.bashrc</code>)</p>
  
  <p>How can I source or what is the best way to apply this? </p>
  
  <p>Thank you </p>