Skip to content

Commit 24dd2cd

Browse files
committed
Fix ansible.cfg warnings
1 parent d3c0093 commit 24dd2cd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ansible.cfg

+12-12
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111

1212
# some basic default values...
1313

14-
hostfile = ./inventories/molecule/ansible_inventory
14+
inventory = ./inventories/molecule/ansible_inventory
1515
#library = /usr/share/my_modules/
1616
remote_tmp = $HOME/.ansible/tmp
1717
pattern = *
1818
forks = 50
1919
poll_interval = 15
20-
sudo_user = root
21-
#ask_sudo_pass = True
22-
#ask_sudo_pass = True
20+
become_user = root
21+
#ask_become_pass = True
22+
#ask_become_pass = True
2323
#ask_pass = True
2424
transport = smart
2525
#remote_port = 22
26-
module_lang = C
26+
#module_lang = C
2727

2828
# plays will gather facts by default, which contain information about
2929
# the remote system.
@@ -39,11 +39,11 @@ roles_path = ./.imported_roles:./roles
3939
# uncomment this to disable SSH key host checking
4040
#host_key_checking = False
4141

42-
# change this for alternative sudo implementations
43-
sudo_exe = sudo
42+
# change this for alternative become implementations
43+
become_exe = sudo
4444

45-
# what flags to pass to sudo
46-
#sudo_flags = -H
45+
# what flags to pass to become
46+
#becom_flags = -H
4747

4848
# SSH timeout
4949
timeout = 10
@@ -59,9 +59,9 @@ timeout = 10
5959
# default module name for /usr/bin/ansible
6060
#module_name = command
6161

62-
# use this shell for commands executed under sudo
62+
# use this shell for commands executed under become
6363
# you may need to change this to bin/bash in rare instances
64-
# if sudo is constrained
64+
# if become is constrained
6565
#executable = /bin/sh
6666

6767
# if inventory variables overlap, does the higher precedence one win
@@ -168,7 +168,7 @@ vault_password_file = vault.key
168168
# host key checking setting above.
169169
#record_host_keys=False
170170

171-
# by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this
171+
# by default, Ansible requests a pseudo-terminal for commands executed under become. Uncomment this
172172
# line to disable this behaviour.
173173
#pty=False
174174

0 commit comments

Comments
 (0)