Move all shared into this new repo

This commit is contained in:
2020-04-02 15:48:20 -06:00
parent 27307f26f2
commit 66fd90a649
465 changed files with 61143 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
---
# Pyenv requires compilers and build tools
# Debian 9
- name: Installing build-essential and pyenv dependencies
apt:
update_cache: yes
state: present
name:
- build-essential
- checkinstall
- libreadline-gplv2-dev
- libncursesw5-dev
- libssl-dev
- libsqlite3-dev
- tk-dev
- libgdbm-dev
- libc6-dev
- libbz2-dev
# Debian 10
- name: Installing build-essential and pyenv dependencies
apt:
update_cache: yes
state: present
name:
- build-essential
- libreadline-gplv2-dev
- libncursesw5-dev
- libssl-dev
- libsqlite3-dev
- tk-dev
- libgdbm-dev
- libc6-dev
- libbz2-dev
- libffi-dev
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "10"
# Install pyenv using git clone
- name: Installing pyenv using git clone
git:
repo: https://github.com/pyenv/pyenv.git
dest: /usr/local/lib/pyenv
depth: 1
# Set users and permissions
# There is also a files/bin/pyenv-fix-permissions.sh that mirror the below
# which you can run manually after you install a new version (pyenv sets mask and ignores setfacl)
- command: chown toor:staff /usr/local/lib/pyenv -R
- command: chmod 2775 /usr/local/lib/pyenv
- command: find /usr/local/lib/pyenv -type d -exec chmod 2775 {} \;
- command: setfacl -R -d -m user::rwx,group::rwx /usr/local/lib/pyenv