|
|
@ -77,7 +77,7 @@ EXAMPLES = '''
|
|
|
|
config: "{{ lookup('file', 'templates/test.xml') }}"
|
|
|
|
config: "{{ lookup('file', 'templates/test.xml') }}"
|
|
|
|
name: test
|
|
|
|
name: test
|
|
|
|
password: admin
|
|
|
|
password: admin
|
|
|
|
url: "http://localhost:8080"
|
|
|
|
url: http://localhost:8080
|
|
|
|
user: admin
|
|
|
|
user: admin
|
|
|
|
|
|
|
|
|
|
|
|
# Create a jenkins job using the token
|
|
|
|
# Create a jenkins job using the token
|
|
|
@ -85,7 +85,7 @@ EXAMPLES = '''
|
|
|
|
config: "{{ lookup('template', 'templates/test.xml.j2') }}"
|
|
|
|
config: "{{ lookup('template', 'templates/test.xml.j2') }}"
|
|
|
|
name: test
|
|
|
|
name: test
|
|
|
|
token: asdfasfasfasdfasdfadfasfasdfasdfc
|
|
|
|
token: asdfasfasfasdfasdfadfasfasdfasdfc
|
|
|
|
url: "http://localhost:8080"
|
|
|
|
url: http://localhost:8080
|
|
|
|
user: admin
|
|
|
|
user: admin
|
|
|
|
|
|
|
|
|
|
|
|
# Delete a jenkins job using basic authentication
|
|
|
|
# Delete a jenkins job using basic authentication
|
|
|
@ -93,7 +93,7 @@ EXAMPLES = '''
|
|
|
|
name: test
|
|
|
|
name: test
|
|
|
|
password: admin
|
|
|
|
password: admin
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
url: "http://localhost:8080"
|
|
|
|
url: http://localhost:8080
|
|
|
|
user: admin
|
|
|
|
user: admin
|
|
|
|
|
|
|
|
|
|
|
|
# Delete a jenkins job using the token
|
|
|
|
# Delete a jenkins job using the token
|
|
|
@ -101,23 +101,23 @@ EXAMPLES = '''
|
|
|
|
name: test
|
|
|
|
name: test
|
|
|
|
token: asdfasfasfasdfasdfadfasfasdfasdfc
|
|
|
|
token: asdfasfasfasdfasdfadfasfasdfasdfc
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
url: "http://localhost:8080"
|
|
|
|
url: http://localhost:8080
|
|
|
|
user: admin
|
|
|
|
user: admin
|
|
|
|
|
|
|
|
|
|
|
|
# Disable a jenkins job using basic authentication
|
|
|
|
# Disable a jenkins job using basic authentication
|
|
|
|
- jenkins_job:
|
|
|
|
- jenkins_job:
|
|
|
|
name: test
|
|
|
|
name: test
|
|
|
|
password: admin
|
|
|
|
password: admin
|
|
|
|
enabled: false
|
|
|
|
enabled: False
|
|
|
|
url: "http://localhost:8080"
|
|
|
|
url: http://localhost:8080
|
|
|
|
user: admin
|
|
|
|
user: admin
|
|
|
|
|
|
|
|
|
|
|
|
# Disable a jenkins job using the token
|
|
|
|
# Disable a jenkins job using the token
|
|
|
|
- jenkins_job:
|
|
|
|
- jenkins_job:
|
|
|
|
name: test
|
|
|
|
name: test
|
|
|
|
token: asdfasfasfasdfasdfadfasfasdfasdfc
|
|
|
|
token: asdfasfasfasdfasdfadfasfasdfasdfc
|
|
|
|
enabled: false
|
|
|
|
enabled: False
|
|
|
|
url: "http://localhost:8080"
|
|
|
|
url: http://localhost:8080
|
|
|
|
user: admin
|
|
|
|
user: admin
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|