machine_setup/ansible/roles/pyenv/tasks/common.yaml

22 lines
504 B
YAML
Raw Normal View History

2023-03-06 20:44:33 +00:00
- name: Install packages
package:
name:
- pyenv
state: present
2023-02-20 18:52:27 +00:00
- import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"'
- import_tasks: tasks/linux.yaml
when: 'os_flavor == "linux"'
- include_tasks:
file: tasks/peruser.yaml
apply:
become: yes
become_user: "{{ initialize_user }}"
when: users is defined
loop: "{{ users | dict2items | community.general.json_query('[?value.initialize==`true`].key') }}"
loop_control:
loop_var: initialize_user