jenkins-job-builder/tests/builders/fixtures/ansible-playbook002.xml
Christian Kanthak d8fa4f4126 Introduce disable-host-key-checking for builder ansible-playbook
Implemented new parameter "disable-host-key-checking" to make the
"anbile-playbook" builder compatible with version >=1.0 of the ansible
plugin. The parameter defaults to "false" for security reasons (as the
plugin does).
The old parameter "host-key-checking" is still written to XML to keep
code working in a setup with plugin version <1.0. This has no impact
on newer setups because the plugin with version >=1.0 ignores the old
parameter value.
For same security reasons the default value of old parameter
"host-key-checking" was changed to "true" to "fix" older setups which
have the parameter not defined.

Change-Id: I4a592c1a4d6ba8bb4f365ce505296cf5c09f7e19
Task: 39789
Story: 2007678
2020-05-15 11:24:34 +02:00

49 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<builders>
<org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder>
<playbook>path/to/playbook.yml</playbook>
<inventory class="org.jenkinsci.plugins.ansible.InventoryContent">
<content>[all]
machine01.example.com
machine02.example.com
</content>
<dynamic>false</dynamic>
</inventory>
<limit>masters</limit>
<tags>ose</tags>
<skippedTags>ovirt</skippedTags>
<startAtTask>Deploy application</startAtTask>
<credentialsId>0891c950-487b-4749-aa69-d87425e14459</credentialsId>
<vaultCredentialsId>0421b950-487b-4749-aa69-d87425e14459</vaultCredentialsId>
<sudo>true</sudo>
<sudoUser>cloud-user</sudoUser>
<become>false</become>
<forks>2</forks>
<unbufferedOutput>false</unbufferedOutput>
<colorizedOutput>true</colorizedOutput>
<disableHostKeyChecking>false</disableHostKeyChecking>
<hostKeyChecking>true</hostKeyChecking>
<additionalParameters>-vvv</additionalParameters>
<copyCredentialsInWorkspace>false</copyCredentialsInWorkspace>
<extraVars>
<org.jenkinsci.plugins.ansible.ExtraVar>
<key>complete_var</key>
<value>complete value</value>
<hidden>false</hidden>
</org.jenkinsci.plugins.ansible.ExtraVar>
<org.jenkinsci.plugins.ansible.ExtraVar>
<key>empty_var</key>
<value/>
<hidden>false</hidden>
</org.jenkinsci.plugins.ansible.ExtraVar>
<org.jenkinsci.plugins.ansible.ExtraVar>
<key>hidden_var</key>
<value>Do not appear in console</value>
<hidden>true</hidden>
</org.jenkinsci.plugins.ansible.ExtraVar>
</extraVars>
</org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder>
</builders>
</project>