I am trying to execute the commands over playbook.
- name: Configure open-pbis
action: command /opt/pbis/bin/config LoginShellTemplate /bin/bash
action: command /opt/pbis/bin/config AssumeDefaultDomain true
It is not setting the bash environment when I execute it with
anisble-playbook.
[root@xxxxxxxxx~]# su - yyyy
-sh-4.1$ env|grep SHELL
SHELL=/bin/sh
-sh-4.1$
Whereas, it is working absolutely fine when I execute the command "
/opt/pbis/bin/config
LoginShellTemplate /bin/bash"
[yyyyy@xxxxxxxxxxxxxxxxxxxx ~]$ env|grep SHELL
SHELL=/bin/bash
Is there any thing special I have to do to make sure the command is
executed as it is, it should reflect the bash as SHELL.
Thanks
--
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/7c67ca4d-8060-4582-a9fd-a317434809fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.