The task definition:
- name: add flannel network config in etcd
shell: config_flannel_network.sh
when: flannel_config_shell.changed
delegate_to: "10.122.12.177"
software environment
- ansible client
host: 127.0.0.1
system os: centos 7
ansible version: 2.9.1
python: python
- target host
host: 10.122.17.201
system os: centos 8
python: python3
- delegate_to host
host: 10.122.12.177
system os: centos 7
python: python
exec ansible task, error message:
TASK [flannel : add flannel network config in etcd]
*************************************************************************************************
task path:
/home/earthgod/workspaces/ansible-k8s-tst/ansible-roles-k8s/roles/flannel/tasks/main.yml:24
fatal: [10.122.17.201 -> 10.122.12.177]: FAILED! => {"changed": false,
"module_stderr": "BECOME-SUCCESS-uwkbocxpjaabqexywadrpcglwjsndvfs\r\n", "modul
e_stdout": "/bin/sh: /usr/bin/python3.6: No such file or directory\r\n", "msg":
"The module failed to execute correctly, you probably need to set the
interpreter.\nSee stdout/stderr for the exact error", "rc": 127}
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/66766b3a-63e7-47a8-980a-344c59da55d0%40googlegroups.com.