-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Unprivileged user falls back to ubuntu #147
Comments
Having the same issue. It appears so that the playbook user var is being ignored?
...
- block:
- name: install rvm
include_role:
name: rvm.ruby
become: yes
become_user: user #<---
...
---
- hosts: all
- name: Configure servers with ruby support for single user
roles:
- { role: rvm.ruby,
tags: ruby,
rvm1_rubies: "ruby-2.6.6",
rvm1_user: "user", #<---
rvm1_bundler_install: yes,
rvm1_install_path: '~/.rvm',
rvm1_rvm_latest_installer: 'https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer',
rvm1_rvm_version: 'stable',
rvm1_rvm_check_for_updates: yes,
rvm1_gpg_keys: '409B6B1796C275462A1703113804BB82D39DC0E3',
rvm1_gpg_key_server: 'hkps://keys.openpgp.org',
rvm1_autolib_mode: 3
} TASK [install rvm] *************************************************************
TASK [rvm.ruby : Detect rvm binary] ********************************************
fatal: [hostname]: 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:ubuntu:rx:allow'\nTry 'chmod --help' for more information.\n}). For information on working around this, see https://docs.ansible.com/ansible/2.11/user_guide/become.html#becoming-an-unprivileged-user"} |
This is worth investigating. @fcevado, @vyngur Could you provide more info so we can reproduce this? This project currently tests successfully against Ubuntu 14.04, 16.04, 18.04 and 20.04. Clearly, whatever issue you're hitting the current tests do not uncover. It'll be key if you provide a minimum reproducible case, in addition to the Ubuntu and rvm1-ansible versions, so we can understand the factors at play here. It would also be helpful to see a representation of the |
Same as @fcevado, sorry. |
Unprivileged user falls back to ubuntu instead of ssh user.
The text was updated successfully, but these errors were encountered: