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

Allow users to override the owner group #128

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Here is the list of all variables and their default values:
- `pyenv_env: "user"` (should be either `"user"` or `"system"`)
- `pyenv_path: "{% if pyenv_env == 'user' %}{{ ansible_env.HOME }}/pyenv{% else %}/usr/local/pyenv{% endif %}"`
- `pyenv_owner: "{{ ansible_env.USER }}"`
- `pyenv_owner_group: "{{ pyenv_owner }}"`
- `pyenv_python_versions: [3.10.6]`
- `pyenv_virtualenvs: [{ venv_name: latest, py_version: 3.10.6 }]`
- `pyenv_global: [3.10.6]`
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
pyenv_env: "user"
pyenv_path: "{% if pyenv_env == 'user' %}{{ ansible_env.HOME }}/pyenv{% else %}/usr/local/pyenv{% endif %}"
pyenv_owner: "{{ ansible_env.USER }}"
pyenv_owner_group: "{{ pyenv_owner }}"
pyenv_setting_path: "{% if pyenv_env == 'user' %}~/.bashrc{% else %}/etc/profile.d/pyenv.sh{% endif %}"
pyenv_update_git_install: true
pyenv_enable_autocompletion: false
Expand Down
4 changes: 2 additions & 2 deletions tasks/custom_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
src: templates/check-configure-options.py.j2
dest: /etc/ansible/facts.d/check-configure-options.py
owner: "{{ pyenv_owner }}"
group: "{{ pyenv_owner }}"
group: "{{ pyenv_owner_group }}"
mode: "0755"

- name: Copy over python_check fact file
template:
src: templates/pyenv_python_installations.fact.j2
dest: /etc/ansible/facts.d/pyenv_python_installations.fact
owner: "{{ pyenv_owner }}"
group: "{{ pyenv_owner }}"
group: "{{ pyenv_owner_group }}"
mode: "0755"

- name: Reload setup to gather custom facts
Expand Down