From 120af786af82902e6e6b59977ec6fa6770b88cf2 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 19 Dec 2017 11:01:14 -0800 Subject: [PATCH] Remove params option from examples --- .../modules/packaging/os/yum_repository.py | 19 ------------------- .../web_infrastructure/jenkins_plugin.py | 6 +----- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/lib/ansible/modules/packaging/os/yum_repository.py b/lib/ansible/modules/packaging/os/yum_repository.py index f247bec634..c1f80f9769 100644 --- a/lib/ansible/modules/packaging/os/yum_repository.py +++ b/lib/ansible/modules/packaging/os/yum_repository.py @@ -431,25 +431,6 @@ EXAMPLES = ''' name: epel file: external_repos state: absent - -# -# Allow to overwrite the yum_repository parameters by defining the parameters -# as a variable in the defaults or vars file: -# -# my_role_somerepo_params: -# # Disable GPG checking -# gpgcheck: no -# # Remove the gpgkey option -# gpgkey: null -# -- name: Add Some repo - yum_repository: - name: somerepo - description: Some YUM repo - baseurl: http://server.com/path/to/the/repo - gpgkey: http://server.com/keys/somerepo.pub - gpgcheck: yes - params: "{{ my_role_somerepo_params }}" ''' RETURN = ''' diff --git a/lib/ansible/modules/web_infrastructure/jenkins_plugin.py b/lib/ansible/modules/web_infrastructure/jenkins_plugin.py index 9d35681489..693b27d2a1 100644 --- a/lib/ansible/modules/web_infrastructure/jenkins_plugin.py +++ b/lib/ansible/modules/web_infrastructure/jenkins_plugin.py @@ -164,16 +164,12 @@ EXAMPLES = ''' # # Example of how to authenticate # -# my_jenkins_params: -# url_username: admin -# - name: Install plugin jenkins_plugin: name: build-pipeline-plugin - params: "{{ my_jenkins_params }}" + url_username: admin url_password: p4ssw0rd url: http://localhost:8888 -# Note that url_password **can not** be placed in params as params could end up in a log file # # Example of a Play which handles Jenkins restarts during the state changes