cancel
Showing results for 
Search instead for 
Did you mean: 
MuhammadRamzan
Mission Specialist
Mission Specialist
  • 160 Views

ansbile configuration

Dear Members,

Need your support.

i am confused about ansible.cfg file. these configuration are fine If it is required to disable default become method?  please assist me.

[defaults]

inventory = inventory     (location with path)

remote_user = username

ask_pass = false

[privilege_escalation]

become = false

 

please assist. if these configuration are fine or need to add something. 

Labels (1)
2 Replies
andkra
Flight Engineer Flight Engineer
Flight Engineer
  • 125 Views

Hello,

you can check the answers to your questions with:
ansible-config list

The less tool is used to show all options from ansible.cfg. Therefor you can search (with / or ?) for the default values of become and ask_pass.

You will find out, that this config could be enough:

[defaults]
inventory = inventory     (location with path)
remote_user = username

Best regards
Andreas

Chetan_Tiwary_
Community Manager
Community Manager
  • 92 Views

@MuhammadRamzan ask_pass and become defaults to false.

Chetan_Tiwary__0-1735910462495.png

 

0 Kudos
Join the discussion
You must log in to join this conversation.