Installing on centos copies /etc/yum.conf from host running ansible instead of remote host.
Summary
Installing on centos copies /etc/yum.conf from host running ansible instead of remote host. When running ansible playbook on ubuntu trying to install docker on centos role fail.
Steps to reproduce
Add some known comment to /etc/yum.conf
on host running ansible.
Expected behavior
File /etc/yum-docker.conf
should be based on file from remote host instead of ansible running one.
Actual behavior
File is copied form host running ansible.
Relevant logs and/or screenshots
log from running on ubuntu
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AnsibleFileNotFound: Could not find or access '/etc/yum.conf'
fatal: [management01]: FAILED! => {"changed": false, "msg": "Could not find or access '/etc/yum.conf'"}
Possible fixes
set remote_src: yes
in copy task "creating yum-docker.conf"