> 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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to