command module, nix warnings for moved modules (#70444)
Change: - Remove warnings from command module which point to modules that no longer ship with ansible-base but have moved to collections. Test Plan: - CI Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
parent
a1224760c4
commit
43ef13d206
2 changed files with 5 additions and 3 deletions
2
changelogs/fragments/command-module-warnings.yml
Normal file
2
changelogs/fragments/command-module-warnings.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- "Command module: Removed suggestions to use modules which have moved to collections and out of ansible-base"
|
|
@ -215,10 +215,10 @@ def check_command(module, commandline):
|
|||
'rmdir': 'state=absent', 'rm': 'state=absent', 'touch': 'state=touch'}
|
||||
commands = {'curl': 'get_url or uri', 'wget': 'get_url or uri',
|
||||
'svn': 'subversion', 'service': 'service',
|
||||
'mount': 'mount', 'rpm': 'yum, dnf or zypper', 'yum': 'yum', 'apt-get': 'apt',
|
||||
'yum': 'yum', 'apt-get': 'apt',
|
||||
'tar': 'unarchive', 'unzip': 'unarchive', 'sed': 'replace, lineinfile or template',
|
||||
'dnf': 'dnf', 'zypper': 'zypper'}
|
||||
become = ['sudo', 'su', 'pbrun', 'pfexec', 'runas', 'pmrun', 'machinectl']
|
||||
'dnf': 'dnf'}
|
||||
become = ['sudo', 'su', 'runas']
|
||||
if isinstance(commandline, list):
|
||||
command = commandline[0]
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue