Fixing state=present for jenkins_plugin module (#52051) (#52535)

* Fixing state=present for jenkins_plugin module (#52051)


(cherry picked from commit 5f4840aaa8)

* Adding changelog fragment for PR #52051 (#52687)


(cherry picked from commit ee14b123f3)
This commit is contained in:
Jiri Tyr 2019-02-22 03:27:10 +00:00 committed by Toshio Kuratomi
parent 573a1106cd
commit b8e8e2baa0
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- jenkins_plugin - Prevent plugin to be reinstalled when state=present (https://github.com/ansible/ansible/issues/43728)

View file

@ -477,7 +477,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()