Install tasks fail when run without escalated privileges
Closed this issue · 0 comments
davestern commented
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Checked that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
- Checked that there is not already provided the described functionality
Description
Some tasks like Airflow | Ensure Airflow group
fail when run without escalated privileges.
Steps to Reproduce
- Install the module
- Run a playbook with the module included
Expected behavior: [What you expect to happen]
TASK [airflow : Airflow | Ensure Airflow group] ********************************************************************************************************************************************************************************
ok: [server-name]
Actual behavior: [What actually happens]
TASK [airflow : Airflow | Ensure Airflow group] ********************************************************************************************************************************************************************************
fatal: [1riv-dev-air]: FAILED! => {"changed": false, "msg": "groupadd: Permission denied.\ngroupadd: cannot lock /etc/group; try again later.\n", "name": "airflow"}
Reproduces how often: [What percentage of the time does it reproduce?]
Every time
Versions
The version/s you notice the behavior.
idealist.airflow-role 1.7.2
ubuntu bionic 18.04
Additional Information
I resolved this issue by adding become: true
to the imported task, but this should be documented or added to the tasks.
- hosts: airflow
tasks:
- import_role:
name: airflow
become: true