-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for default true for encrypt extra vars
- Loading branch information
Showing
2 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...mport/ansible-test/rundeck-ansible-test/jobs/job-0f714bfb-a0a4-4668-8279-35a8c4167db9.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<joblist> | ||
<job> | ||
<context> | ||
<options preserveOrder='true'> | ||
<option name='password' secure='true' storagePath='keys/project/ansible-test/ssh-node.pass' valueExposed='true' /> | ||
<option name='username' value='rundeck' /> | ||
</options> | ||
</context> | ||
<defaultTab>nodes</defaultTab> | ||
<description></description> | ||
<dispatch> | ||
<excludePrecedence>true</excludePrecedence> | ||
<keepgoing>false</keepgoing> | ||
<rankOrder>ascending</rankOrder> | ||
<successOnEmptyNodeFilter>false</successOnEmptyNodeFilter> | ||
<threadcount>1</threadcount> | ||
</dispatch> | ||
<executionEnabled>true</executionEnabled> | ||
<group>Ansible</group> | ||
<id>0f714bfb-a0a4-4668-8279-35a8c4167db9</id> | ||
<loglevel>INFO</loglevel> | ||
<name>simple-inline-playbook-encrypt-vars</name> | ||
<nodeFilterEditable>false</nodeFilterEditable> | ||
<nodefilters> | ||
<filter>name: ssh-node </filter> | ||
</nodefilters> | ||
<nodesSelectedByDefault>true</nodesSelectedByDefault> | ||
<plugins /> | ||
<scheduleEnabled>true</scheduleEnabled> | ||
<sequence keepgoing='false' strategy='node-first'> | ||
<command> | ||
<node-step-plugin type='com.batix.rundeck.plugins.AnsiblePlaybookInlineWorkflowNodeStep'> | ||
<configuration> | ||
<entry key='ansible-base-dir-path' value='/home/rundeck/ansible' /> | ||
<entry key='ansible-become' value='false' /> | ||
<entry key='ansible-extra-vars' value='password: ${option.password} username: ${option.username} test: "demo"' /> | ||
<entry key='ansible-playbook-inline' value='- hosts: all gather_facts: false tasks: - name: Get Disk Space shell: "df -h" register: sh_output - debug: var=sh_output.stdout_lines - debug: msg="{{ username }}" - debug: msg="{{ test }}" ' /> | ||
<entry key='ansible-ssh-auth-type' value='privateKey' /> | ||
<entry key='ansible-ssh-key-storage-path' value='keys/project/ansible-test/ssh-node.key' /> | ||
<entry key='ansible-ssh-passphrase-option' value='option.password' /> | ||
<entry key='ansible-ssh-use-agent' value='false' /> | ||
<entry key='ansible-ssh-user' value='rundeck' /> | ||
</configuration> | ||
</node-step-plugin> | ||
</command> | ||
</sequence> | ||
<uuid>0f714bfb-a0a4-4668-8279-35a8c4167db9</uuid> | ||
</job> | ||
</joblist> |