@ -218,7 +218,7 @@ EXAMPLES = '''
register : my_jenkins_plugin_unversioned
register : my_jenkins_plugin_unversioned
when : >
when : >
' version ' not in item . value
' version ' not in item . value
with_dict : my_jenkins_plugins
with_dict : " {{ my_jenkins_plugins }} "
- name : Install plugins with a specific version
- name : Install plugins with a specific version
jenkins_plugin :
jenkins_plugin :
@ -227,7 +227,7 @@ EXAMPLES = '''
register : my_jenkins_plugin_versioned
register : my_jenkins_plugin_versioned
when : >
when : >
' version ' in item . value
' version ' in item . value
with_dict : my_jenkins_plugins
with_dict : " {{ my_jenkins_plugins }} "
- name : Initiate the fact
- name : Initiate the fact
set_fact :
set_fact :
@ -237,13 +237,13 @@ EXAMPLES = '''
set_fact :
set_fact :
jenkins_restart_required : yes
jenkins_restart_required : yes
when : item . changed
when : item . changed
with_items : my_jenkins_plugin_versioned . results
with_items : " {{ my_jenkins_plugin_versioned.results }} "
- name : Check if restart is required by any of the unversioned plugins
- name : Check if restart is required by any of the unversioned plugins
set_fact :
set_fact :
jenkins_restart_required : yes
jenkins_restart_required : yes
when : item . changed
when : item . changed
with_items : my_jenkins_plugin_unversioned . results
with_items : " {{ my_jenkins_plugin_unversioned.results }} "
- name : Restart Jenkins if required
- name : Restart Jenkins if required
service :
service :
@ -276,7 +276,7 @@ EXAMPLES = '''
state : " {{ ' pinned ' if item.value[ ' pinned ' ] else ' unpinned ' }} "
state : " {{ ' pinned ' if item.value[ ' pinned ' ] else ' unpinned ' }} "
when : >
when : >
' pinned ' in item . value
' pinned ' in item . value
with_dict : my_jenkins_plugins
with_dict : " {{ my_jenkins_plugins }} "
- name : Plugin enabling
- name : Plugin enabling
jenkins_plugin :
jenkins_plugin :
@ -284,7 +284,7 @@ EXAMPLES = '''
state : " {{ ' enabled ' if item.value[ ' enabled ' ] else ' disabled ' }} "
state : " {{ ' enabled ' if item.value[ ' enabled ' ] else ' disabled ' }} "
when : >
when : >
' enabled ' in item . value
' enabled ' in item . value
with_dict : my_jenkins_plugins
with_dict : " {{ my_jenkins_plugins }} "
'''
'''
RETURN = '''
RETURN = '''