I have a playbook with the following two tasks:
- copy:
src: libpasswdqc.so.0
dest: /usr/lib/libpasswdqc.so.0
owner: root
group: bin
mode: 0755
- file:
src: ./libpasswdqc.so.0
dest: /usr/lib/libpasswdqc.so
owner: root
group: root
state: link
It is not possible to check this playbook, because the first task does not
copy the file while running in dry mode and the second throws a fatal error:
fatal: [xxxxxxxx]: FAILED! => {"changed": false, "failed": true, "msg":
"src file does not exist, use \"force=yes\" if you really want to create
the link: /usr/lib/./libpasswdqc.so.0", "path": "/usr/lib/libpasswdqc.so",
"src": "./libpasswdqc.so.0", "state": "absent"}
How to make the error non fatal during dry runs?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1a289e7f-cb58-42eb-84ab-ef2e846549c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.