Many updates over time
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
# Copy profiles to /etc/profile.d/
|
||||
- include_tasks: ../../../functions/copy_etc-profile.d.yml
|
||||
- include_tasks: ../../shared/functions/copy_etc-profile.d.yml
|
||||
|
||||
# Create directory
|
||||
- name: Create /etc/poetry directory
|
||||
|
||||
@@ -38,6 +38,24 @@
|
||||
- libffi-dev
|
||||
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "10"
|
||||
|
||||
# Debian 12
|
||||
- name: Installing build-essential and pyenv dependencies
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- build-essential
|
||||
- libreadline-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 == "12"
|
||||
|
||||
# Install pyenv using git clone
|
||||
- name: Installing pyenv using git clone
|
||||
git:
|
||||
@@ -52,3 +70,10 @@
|
||||
- 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
|
||||
|
||||
# Adjust git to allow alternate perms on /usr/local/lib/pyenv
|
||||
# If you don't do this, and run playbook again it errors on
|
||||
# FAILED! => {"changed": false, "msg": "Failed to set a new url https://github.com/pyenv/pyenv.git for origin: fatal: detected dubious ownership in repository at '/usr/local/lib/pyenv'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /usr/local/lib/pyenv\n"}
|
||||
- name: Adjust git to allow alternate perms on /usr/local/lib/pyenv
|
||||
ansible.builtin.shell:
|
||||
cmd: git config --global --add safe.directory /usr/local/lib/pyenv
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
# Copy profiles to /etc/profile.d/
|
||||
- include_tasks: ../../../functions/copy_etc-profile.d.yml
|
||||
- include_tasks: ../../shared/functions/copy_etc-profile.d.yml
|
||||
|
||||
# Copy scripts to /usr/local/bin
|
||||
- include_tasks: ../../../functions/copy_usr-local-bin.yml
|
||||
- include_tasks: ../../shared/functions/copy_usr-local-bin.yml
|
||||
|
||||
# Install pyenv
|
||||
- include_tasks: install-pyenv.yml
|
||||
|
||||
Reference in New Issue
Block a user