---
- include: Debian.yml
  when: ansible_os_family == "Debian"
- include: RedHat.yml
  when: ansible_os_family == "RedHat"

- include: install.yml
  become_user: "{{ pyenv_owner }}"
  when: pyenv_env == "user"
- include: install.yml
  become: true
  when: pyenv_env == "system"


---
- include: Debian.yml
  when: ansible_os_family == "Debian"
  
- include: RedHat.yml
  when: ansible_os_family == "RedHat"


- include: install.yml
  become: true
  become_user: "{{ pyenv_owner }}"
  when: pyenv_env == "user"
  
- include: install.yml
  become: true
  when: pyenv_env == "system"


Install pyenv with a specified pyenv_owner
Install pyenv with a specified pyenv_owner