mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix Ansible documentation in part of example formatting. Part 1 (#332)
* Fix Ansible documentation in part of example formatting * Fix
This commit is contained in:
parent
983d937b7b
commit
328319b926
70 changed files with 762 additions and 705 deletions
|
@ -61,48 +61,48 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
# Create a jenkins job using basic authentication
|
||||
- jenkins_job:
|
||||
- name: Create a jenkins job using basic authentication
|
||||
jenkins_job:
|
||||
config: "{{ lookup('file', 'templates/test.xml') }}"
|
||||
name: test
|
||||
password: admin
|
||||
url: http://localhost:8080
|
||||
user: admin
|
||||
|
||||
# Create a jenkins job using the token
|
||||
- jenkins_job:
|
||||
- name: Create a jenkins job using the token
|
||||
jenkins_job:
|
||||
config: "{{ lookup('template', 'templates/test.xml.j2') }}"
|
||||
name: test
|
||||
token: asdfasfasfasdfasdfadfasfasdfasdfc
|
||||
url: http://localhost:8080
|
||||
user: admin
|
||||
|
||||
# Delete a jenkins job using basic authentication
|
||||
- jenkins_job:
|
||||
- name: Delete a jenkins job using basic authentication
|
||||
jenkins_job:
|
||||
name: test
|
||||
password: admin
|
||||
state: absent
|
||||
url: http://localhost:8080
|
||||
user: admin
|
||||
|
||||
# Delete a jenkins job using the token
|
||||
- jenkins_job:
|
||||
- name: Delete a jenkins job using the token
|
||||
jenkins_job:
|
||||
name: test
|
||||
token: asdfasfasfasdfasdfadfasfasdfasdfc
|
||||
state: absent
|
||||
url: http://localhost:8080
|
||||
user: admin
|
||||
|
||||
# Disable a jenkins job using basic authentication
|
||||
- jenkins_job:
|
||||
- name: Disable a jenkins job using basic authentication
|
||||
jenkins_job:
|
||||
name: test
|
||||
password: admin
|
||||
enabled: False
|
||||
url: http://localhost:8080
|
||||
user: admin
|
||||
|
||||
# Disable a jenkins job using the token
|
||||
- jenkins_job:
|
||||
- name: Disable a jenkins job using the token
|
||||
jenkins_job:
|
||||
name: test
|
||||
token: asdfasfasfasdfasdfadfasfasdfasdfc
|
||||
enabled: False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue