Lots of updated roles

This commit is contained in:
2020-05-12 17:07:38 -06:00
parent 5a9254097e
commit 6bb3e3f34f
35 changed files with 264 additions and 125 deletions

View File

@@ -17,6 +17,8 @@
- libgdbm-dev
- libc6-dev
- libbz2-dev
- libffi-dev
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "9"
# Debian 10
- name: Installing build-essential and pyenv dependencies
@@ -34,21 +36,19 @@
- libc6-dev
- libbz2-dev
- libffi-dev
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "10"
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "10"
# Install pyenv using git clone
# Install pyenv using git clone
- name: Installing pyenv using git clone
git:
repo: https://github.com/pyenv/pyenv.git
dest: /usr/local/lib/pyenv
force: yes
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
- file: 'path=/usr/local/lib/pyenv owner={{ superuser }} group={{ supergroup }} state=directory recurse=yes mode=2775'
- command: find /usr/local/lib/pyenv -type d -exec chmod 2775 {} \;
- command: setfacl -R -d -m user::rwx,group::rwx /usr/local/lib/pyenv