modules: fix examples to use FQCN for builtin plugins (#661)

This commit is contained in:
Andrew Klychkov
2020-07-16 14:42:12 +03:00
committed by GitHub
parent 2c3efea14b
commit 4c4a6ab27c
17 changed files with 36 additions and 36 deletions

View File

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

View File

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

View File

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