HomeLab rundeck

108 views
Skip to first unread message

Andrew Meyer

unread,
Jan 3, 2024, 1:11:43 PM1/3/24
to rundeck-discuss
While I am working on rundeck for work I am trying to do the same thing at home to learn it a bit more.  I have got mine configured.  I have the ssh keys in place.  The ansible invnetory set up and configured in rundeck but I can't get it to run a command or playbook against another host.  Not sure why.

Here is the error output:

[workflow] Begin step: 1,NodeDispatch
1: Workflow step executing: StepExecutionItem{type='NodeDispatch', keepgoingOnSuccess=false, hasFailureHandler=false}
preparing for sequential execution on 1 nodes
Executing command on node: localhost, NodeEntryImpl{tags=[], attributes={nodename=localhost, hostname=localhost, osFamily=unix, osVersion=5.14.0-391.el9.x86_64, osArch=amd64, description=Rundeck server node, osName=Linux, username=rundeck, tags=}, project='null'}
[workflow] beginExecuteNodeStep(localhost): NodeDispatch: StepExecutionItem{type='NodeDispatch', keepgoingOnSuccess=false, hasFailureHandler=false}
procArgs: [/usr/bin/ansible-playbook, /var/lib/rundeck/projects/ASM_Common/ScmImport/test/test.yml, --inventory-file=/tmp/rundeck/ansible-inventory3322563413972314815.json, -l, localhost, -vvv, --private-key=/tmp/rundeck/ansible-runner36584638637819878id_rsa, --user=svc_automation_local, --timeout=30, --become, --ask-become-pass, --become-method=sudo, --become-user=svc_automation_local]
ANSIBLE_CONFIG: /opt/syseng/automation/ansible1/ansible.cfg
/usr/lib64/python3.9/getpass.py:91: GetPassWarning: Can not control echo on the terminal.
passwd = fallback_getpass(prompt, stream)
Warning: Password input may be echoed.
BECOME password:
[WARNING]: Could not match supplied host pattern, ignoring: None
ansible-playbook [core 2.14.12]
config file = /opt/syseng/automation/ansible1/ansible.cfg
configured module search path = ['/opt/syseng/automation/ansible1/{{ ANSIBLE_HOME ~ "/plugins/modules', '/usr/share/ansible/plugins/modules', '/opt/syseng/automation/ansible1/library" }}']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /opt/syseng/automation/ansible1/ansible_collections:/opt/syseng/automation/ansible1/collection
executable location = /usr/bin/ansible-playbook
python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
Using /opt/syseng/automation/ansible1/ansible.cfg as config file
host_list declined parsing /tmp/rundeck/ansible-inventory3322563413972314815.json as it did not pass its verify_file() method
script declined parsing /tmp/rundeck/ansible-inventory3322563413972314815.json as it did not pass its verify_file() method
auto declined parsing /tmp/rundeck/ansible-inventory3322563413972314815.json as it did not pass its verify_file() method
Parsed /tmp/rundeck/ansible-inventory3322563413972314815.json inventory source with ini plugin
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: test.yml *************************************************************
1 plays in /var/lib/rundeck/projects/ASM_Common/ScmImport/test/test.yml
PLAY [Run common role] *********************************************************
skipping: no hosts matched
PLAY RECAP *********************************************************************
[workflow] finishExecuteNodeStep(localhost): NodeDispatch: Step successful
1: Workflow step finished, result: Dispatch successful (1 nodes)


Here is my Job config:
rundeck-workflow-1.jpg
rundeck-workflow-2.jpg
rundeck-workflow-3.jpg
rundeck-workflow-4.jpg
[workflow] Finish step: 1,NodeDispatch






Andrew Meyer

unread,
Jan 3, 2024, 1:15:28 PM1/3/24
to rundeck-discuss
Also this is running Rundeck 4.17.x on CentOS 9 Stream with Java 11.

JP Lassnibatt

unread,
Jan 3, 2024, 2:04:00 PM1/3/24
to rundeck-discuss
Hello there,
Is ansible (ansible-playbook) working OK outside Rundeck? I mean from the Rundeck's OS command line.

Andrew Meyer

unread,
Jan 3, 2024, 2:12:27 PM1/3/24
to rundeck-discuss
Hi,
I didn't have the ANSIBLE_CONFIG in the .bashrc for the rundeck user.

Andrew Meyer

unread,
Jan 3, 2024, 2:19:58 PM1/3/24
to rundeck-discuss
So that didn't help.  Still getting no targets defined error.  But it looks like it might be a deeper issue.  I don't have all of my playbooks there either.
Reply all
Reply to author
Forward
0 new messages