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