mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
modules: fix examples to use FQCN for builtin plugins (#661)
This commit is contained in:
@@ -86,7 +86,7 @@ EXAMPLES = '''
|
||||
delegate_to: myloadbalancernode
|
||||
|
||||
- name: Step 2
|
||||
wait_for:
|
||||
ansible.builtin.wait_for:
|
||||
host: '{{ member.host }}'
|
||||
port: '{{ member.port }}'
|
||||
state: drained
|
||||
|
||||
@@ -188,17 +188,17 @@ EXAMPLES = '''
|
||||
with_dict: "{{ my_jenkins_plugins }}"
|
||||
|
||||
- name: Initiate the fact
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
jenkins_restart_required: no
|
||||
|
||||
- name: Check if restart is required by any of the versioned plugins
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
jenkins_restart_required: yes
|
||||
when: item.changed
|
||||
with_items: "{{ my_jenkins_plugin_versioned.results }}"
|
||||
|
||||
- name: Check if restart is required by any of the unversioned plugins
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
jenkins_restart_required: yes
|
||||
when: item.changed
|
||||
with_items: "{{ my_jenkins_plugin_unversioned.results }}"
|
||||
@@ -224,7 +224,7 @@ EXAMPLES = '''
|
||||
when: jenkins_restart_required
|
||||
|
||||
- name: Reset the fact
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
jenkins_restart_required: no
|
||||
when: jenkins_restart_required
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ EXAMPLES = '''
|
||||
password: admin
|
||||
|
||||
- name: Setting master using a variable to hold a more complicate script
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
setmaster_mode: |
|
||||
import jenkins.model.*
|
||||
instance = Jenkins.getInstance()
|
||||
|
||||
Reference in New Issue
Block a user