>
> I ran into the same issue and spent many hours trying to find out why it 
> wasn't using the profiles.  I like your LAST test to see which profile was 
> being used, very clever.
>

I solved it by simply sourcing each profile I needed prior to the step I 
wanted to execute.  For example:

- name: Run some step
  shell: . /pathtobashrc/.bashrc && . /pathtoprofile/profile && step I 
wanted to execute
 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5cc3f93b-57d3-4196-bf37-a9ec58799921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to