-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running tasks on localhost requires sudo permissions #155
Comments
From your description, the problem does not seem to be related directly to the role and more of an environment issue. If you are failing with setting |
I'll try and get some more debug information. |
So it seems like the I see 1.22.0 that part was changed. So I'll test that out and report back EDITIED: The latest version causes another issue Seems like delegate_to doesn't work will with |
This seems still to be more of an issue with your environment / playbook. The role will not per-default elevate the privileges for the preflight tasks - please see: https://github.com/patrickjahns/ansible-role-promtail/blob/master/tasks/main.yml#L1-L22 Please share your playbook and the way you are executing your playbook - the core cause for this is most likely there Can I also ask you, to share any issues as plaintext instead of screenshots. Screenshots are hard to read when it's text, as it is cropped to fit into size and makes it very uncomfortable to read. Thank you |
Sorry about that. Will do plaintext going forth.
So the playbook is pretty simple. I'm just running this with packer with the ansible provider. When the provider ssh into the system. It is as a The problem I think is happening is that since part of the task in the role is delegated to
---
- name: Setup promtail
hosts: all
become: true
vars_files:
- ./vars/default.yml
roles:
- { role: promtail, tags: promtail }
EDITIED:
|
Thank you for all the information ❤️ As I've suspected, you are forcing Can you try running the playbook without it:
|
thats good to know. Some roles required me to elevate to root before running. Running this role without root worked. So I'll just separate out those roles into another step. Thanks for the help. |
Happy to hear that it's now working for you as intended 👍 . Thank you very much for the open communication and collaboration on this issue |
thank you for a great role. |
Hi,
New to ansible and was trying to use this role. When I set
promtail_version: latest
in my vars the role errors out with the following.Now in another run, I set
ANSIBLE_DEBUG=true
since it seemed like thats how I can enableno_log=false
but I can't really make heads or tail what the error is in the very verbose output.But ff I set that var to a number it works fine since it uses another task step to download the binary.
So my question is, any guidance on how to debug this better so I can fix the problem?
The text was updated successfully, but these errors were encountered: