Closed romogo17 closed 3 years ago
@romogo17 I think this may be a duplicate of #307 and #333. Could you verify what version of this collection you are using here?
Hi @tima, I'm currently using v1.1.1
# /usr/local/Cellar/ansible/2.10.4/libexec/lib/python3.9/site-packages/ansible_collections
Collection Version
-------------------- -------
community.kubernetes 1.1.1
After reading #307 (and #320) I tried to install the collection directly from the main
branch.
I used the playbook I was having issues with, and it worked fine with and without the FQCN
- hosts: all
tasks:
- name: Download the calico manifest
ansible.builtin.get_url:
url: "https://docs.projectcalico.org/manifests/calico.yaml"
dest: "/tmp"
- name: Apply the calico manifests
community.kubernetes.k8s:
src: "/tmp/calico.yaml"
- hosts: all
tasks:
- name: Download the calico manifest
ansible.builtin.get_url:
url: "https://docs.projectcalico.org/manifests/calico.yaml"
dest: "/tmp"
- name: Apply the calico manifests
k8s:
src: "/tmp/calico.yaml"
TASK [Download the calico manifest] *************************************************************************************
ok: [kube-instance-singlenode]
TASK [Apply the calico manifests] ***************************************************************************************
changed: [kube-instance-singlenode]
PLAY RECAP **************************************************************************************************************
kube-instance-singlenode : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Thank you for pointing me into the right direction!
SUMMARY
When using the FQCN of the
k8s
module with thesrc
parameter, the module fails to find or access the referenced fileISSUE TYPE
COMPONENT NAME
k8s
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Controller
Remote
STEPS TO REPRODUCE
To reproduce, use the module with the FQCN using the
src
parameter on a file in the remote hostEXPECTED RESULTS
These results are obtained when using a playbook without the FQCN, such as
ACTUAL RESULTS