Skip to content
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

Ansible fails to write configuration.py #64

Closed
jvoss opened this issue Jan 9, 2024 · 0 comments · Fixed by #66
Closed

Ansible fails to write configuration.py #64

jvoss opened this issue Jan 9, 2024 · 0 comments · Fixed by #66
Assignees
Labels
bug Something isn't working

Comments

@jvoss
Copy link
Owner

jvoss commented Jan 9, 2024

Ansible bugs when writing configuration.py in Debian Bookworm.

TASK [jvoss.netbox : configure | write configuration.py] *************************************************
fatal: [netbox]: FAILED! => 
  msg: |-
    Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user (rc: 1, err: chmod: invalid mode: ‘A+user:netbox:rx:allow’
    Try 'chmod --help' for more information.
    }). For information on working around this, see https://docs.ansible.com/ansible-core/2.15/playbook_guide/playbooks_privilege_escalation.html#risks-of-becoming-an-unprivileged-user#risks-of-becoming-an-unprivileged-user

Remove the following lines:

become: yes
become_user: "{{ netbox_user }}"

become: yes
become_user: "{{ netbox_user }}"

become: yes
become_user: "{{ netbox_user }}"

@jvoss jvoss added the bug Something isn't working label Jan 9, 2024
@jvoss jvoss self-assigned this Jan 9, 2024
@jvoss jvoss closed this as completed in #66 Jan 9, 2024
jvoss added a commit that referenced this issue Jan 9, 2024
fix: become non-priv user configuring; fixes #64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant