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)
pull/52792/head
Jiri Tyr 7 years ago committed by Toshio Kuratomi
parent 573a1106cd
commit b8e8e2baa0

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

@ -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()

Loading…
Cancel
Save