From 20174f1c4762d5ba6c47c827745c1d39c8fd45af Mon Sep 17 00:00:00 2001 From: John R Barker Date: Wed, 20 Dec 2017 15:00:32 +0000 Subject: [PATCH] Suggest using replace module rather than command sed (#34085) * Suggest using replace module rather than command sed * Better order --- lib/ansible/modules/commands/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/commands/command.py b/lib/ansible/modules/commands/command.py index 7e1e072702..81bb333e1e 100644 --- a/lib/ansible/modules/commands/command.py +++ b/lib/ansible/modules/commands/command.py @@ -128,13 +128,13 @@ def check_command(module, commandline): 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', - 'tar': 'unarchive', 'unzip': 'unarchive', 'sed': 'template or lineinfile', + 'tar': 'unarchive', 'unzip': 'unarchive', 'sed': 'replace, lineinfile or template', 'dnf': 'dnf', 'zypper': 'zypper'} become = ['sudo', 'su', 'pbrun', 'pfexec', 'runas', 'pmrun'] command = os.path.basename(commandline.split()[0]) disable_suffix = "If you need to use command because {mod} is insufficient you can add" \ - " warn=False to this command task or set command_warnings=False in" \ + " warn=False to this command task or set command_warnings=False in" \ " ansible.cfg to get rid of this message." substitutions = {'mod': None, 'cmd': command}