-
It looks like ansible:ping is trying to set the user as root on the nodes when it runs based on the auth.log. I'm running Ubuntu 22.04 LTS. Do I need to add root to //etc//sudoers? I have no problems up until this point in the procedure. |
Beta Was this translation helpful? Give feedback.
Answered by
onedr0p
Apr 5, 2023
Replies: 1 comment 1 reply
-
I am not sure why this isn't working for you but you can force ansible to try and ping via your user... Change to something like ping:
desc: Ping all the hosts
dir: "{{.ANSIBLE_DIR}}"
cmds:
- ansible all -i {{.ANSIBLE_INVENTORY_DIR}}/hosts.yml -u YOURUSERNAME --one-line -m 'ping' The user should be picked up from your vars but in your case it is unable to. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tomsnj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not sure why this isn't working for you but you can force ansible to try and ping via your user...
https://github.com/onedr0p/flux-cluster-template/blob/main/.taskfiles/AnsibleTasks.yml#L48-L52
Change to something like
The user should be picked up from your vars but in your case it is unable to.