Answer the question
In order to leave comments, you need to log in
How to make Ansible look for files on localhost?
Good afternoon!
How to make Ansible look for files on localhost?
I do it like this:
---
- hosts: test
tasks:
- name: Find .war & .jar file on localhost
find: paths="/var/lib/jenkins/workspace" patterns="*.war,*.jar"
fatal: [127.0.0.1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable": true}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question