Hi,

Even i am trying to source the bashrc file on my target system.
Ansible runs successfully without errors but doesn't source the file.
Below is my task:

- name: source bashrc file
  shell: source ~/.bashrc
  args:
     executable: /bin/bash

Didn't really find that executable arg helping me out.
Any other way around??
Kindly help.

Thanks in advance
Mona G
On Tuesday, March 24, 2015 at 11:21:59 PM UTC+5:30, [email protected] 
wrote:
>
> Hi,
>
> I'm new to ansible and I'm trying to get ansible to source the 
> .bash_profile of the user on the target system.  We set many environment 
> variables there in order to run a multitude of scripts.  I know that 
> ansible doesn't support this.  Any thoughts on how I can force ansible to 
> source this file?
>
> Thanks!
>
> bob
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c3da2921-8da7-4955-b45e-f23645ee5d97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to