diff --git a/lib/ansible/modules/web_infrastructure/jenkins_plugin.py b/lib/ansible/modules/web_infrastructure/jenkins_plugin.py index f384623925f..a0e641465fb 100644 --- a/lib/ansible/modules/web_infrastructure/jenkins_plugin.py +++ b/lib/ansible/modules/web_infrastructure/jenkins_plugin.py @@ -478,7 +478,7 @@ class JenkinsPlugin(object): self._write_file(plugin_file, data) changed = True - else: + elif self.params['version'] == 'latest': # Check for update from the updates JSON file plugin_data = self._download_updates()