I am trying to run an Ansible playbook via Jenkins
- hosts: all
tasks:
- name: Print message
debug: msg="Hello number 2 from Ansible!!"
- name: ping all hosts
ping:
- debug: var=ansible_all_ipv4_addresses
- name: Update the repository cache and update package "nginx" to latest version using default release squeeze-backport
apt:
name: nginx
state: latest
update_cache: yes
- name: Copy config files for nginx
copy:
src: ./Config-Files-Prod/NGINX Redirect/
dest: /etc/nginx
force: yes
directory_mode: yes
But I end up with the following error:
Could not find or access './Config-Files-Prod/NGINX Redirect/'\nSearched in:\n\t<http://server.com/job/Ansible-AS/ws/Play-Books-Prod/files/./Config-Files-Prod/NGINX