enhanced korn shell to switch to root user

Hi,

Anyone knows if this can be achieved to to become root user thorugh, if we are using EKSH.

sudo /usr/localcw/bin/eksh

Regards
Priyal Patil

If you are planning to use it as part of a “shell” module, this provides an attribute to specify the shell to be used.

The attribute for the module is “executable”.

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/shell_module.html

Hi,

I wanted to use with other modules like yum
Regards
Priyal Patil

I’m maybe wrong, but it is my understanding that ansible modules don’t use a shell underneath (except the shell module).

If you want to use a task to remotely run a command, you should use the shell/command module.