The script does not work, when executed locally as root user.
The script does not correctly switch to the tfenv_user user
- name: Install tfenv
become_user: "{{ tfenv_user }}"
does not correctly switch the user.
The docu says:
become_user
set to user with desired privileges — the user you become, NOT the user you login as. **Does NOT imply become: yes**, to allow it to be set at host level. Default value is root.
The script does not work, when executed locally as root user.
The script does not correctly switch to the tfenv_user user
does not correctly switch the user.
The docu says: