0

I am new to ansible, We are using pbrun (powerbroker) instead of sudo, and root login is disabled on all servers. How can I setup passwordless login via ansible master to all slave servers?

My consideration: We can create ansible user > it should automatically switch to root via pbrun.

How can this be setup?

1 Answers1

0

Just create an user and give it full privileges via pbrun.

In Ansible set:

webserver ansible_user=manager ansible_become=true ansible_become_method=pbrun

in the inventory. The become_methoddirective can be set from play to task level. Consult the documentation on become for further instructions.

Henrik Pingel
  • 8,676
  • 2
  • 24
  • 38