added pyenv role

This commit is contained in:
Phil Skentelbery
2019-09-26 17:58:30 -05:00
parent 14074500ac
commit 1585114795
19 changed files with 437 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
# Use action module which can interchangably use yum or dnf depending on what is available ( Eg. dnf on Fedora vs yum on Centos )
# Note: special variable ansible_pkg_mgr requires fact_gathering to be enabled
# More: https://ansible-tips-and-tricks.readthedocs.io/en/latest/os-dependent-tasks/installing_packages/
- name: Install development packages necessary for building Python
action: >
{{ ansible_pkg_mgr }} name="{{ pyenv_redhat_packages }}" state=present
become: true