Replies: 1 comment 7 replies
-
It seems to me like you’re conflating a few things here: The ipwrap filter‘s only purpose is wrapping IPv6 addresses (and only IPv6 addresses) in square brackets. So the output of ipwrap does only depend on the input string, not on the network situation (e.g. the existence of a DHCP6 server). What is the error message that you are gering with the unmodified roles? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello team,
I'm trying to use the automation, but I've faced two issues:
Looks like that the adjustments made to cover IPV6 causes a issue in the determination of the IP for the parameter "apiserver_endpoint".
My scenario is one environment where there is no DHCP for IPV6, so the implemented use of function "ansible.utils.ipwrap", returns no data and consequently no IP address information, to correct the errors and be able to continue the automation execution, I've commented the lines with this functions in the file ks3s>master>tasks>main.yml (line 163), this solved the step "Configure kubectl cluster to".
But now I'm facing an error in the step node "Enable and check K3s service", the resultant file of the copy from the template "k3s.service.j2", has also the use of the function "ansible.utils.ipwrap", so I've commented that as well, but the main issue on this point is that the file in the node has no values substituting the corresponding variables, resulting into a job error when trying to rump up the service.
The file content is like this:
`
-- The job identifier is 1862 and the job result is failed.
alchemist@k3s2:/etc/systemd/system$ cat k3s-node.service
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network-online.target
[Service]
Type=notify
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s agent --server https://{{ apiserver_endpoint }}:6443 --token {{ hostvars[groups['master'][0]]['token'] | default(k3s_token) }} {{ extra_agent_args | default("") }}
`
I'm wondering if there is a need of Defaults folder and main.yml, for the Nodes section, I'm far from a Ansible expert, so it is just a guess.
Would be nice if you could help me with this.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions