Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit 1a01a65

Browse files
committed
Add debug version
1 parent 5185bfb commit 1a01a65

File tree

6 files changed

+58
-1
lines changed

6 files changed

+58
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.retry
2+
*.vagrant
23
*/__pycache__
34
*.pyc
45
/.python-version

Vagrantfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Vagrant.configure("2") do |config|
2+
# Debian 11
3+
config.vm.box = "debian/bookworm64"
4+
# Sync colletions folder
5+
config.vm.provider "virtualbox" do |provider|
6+
# Display the GUI when booting the machine
7+
provider.gui = true # this option does not exist on libvirt provider
8+
9+
# Install pip
10+
#config.vm.provision "shell", inline: "sudo apt update && sudo apt upgrade -y && apt install -y python3-pip"
11+
# Customize the amount of memory on the VM:
12+
provider.memory = "6000"
13+
14+
# Run playbook
15+
config.vm.provision "ansible" do |ansible|
16+
ansible.playbook = "playbook.yml"
17+
ansible.verbose = "vv"
18+
ansible.become = true
19+
ansible.ask_become_pass = true
20+
end
21+
end
22+
end

ansible.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[defaults]
2+
nocows = True
3+
roles_path = .:~/.ansible/roles
4+
timeout = 30
5+
interpreter_python = /usr/bin/python3

current-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.0
1+
2.6.1

playbook.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
- name: Define hosts
3+
hosts: all
4+
become: true
5+
6+
pre_tasks:
7+
- name: Update apt cache and install pip.
8+
ansible.builtin.apt:
9+
name: python3-pip
10+
update_cache: true
11+
cache_valid_time: 600
12+
when: ansible_os_family == 'Debian'
13+
14+
# # https://askubuntu.com/questions/1428181/module-lib-has-no-attribute-x509-v-flag-cb-issuer-check
15+
# - name: Update pyOpenSSL.
16+
# ansible.builtin.pip:
17+
# name: pyOpenSSL
18+
# extra_args: --upgrade
19+
20+
roles:
21+
- role: .

tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
- name: Load custom facts
33
ansible.builtin.import_tasks: custom_facts.yml
44

5+
- name: Debug Facts
6+
ansible.builtin.debug:
7+
var: ansible_distribution_release
8+
9+
- name: Debug Facts2
10+
ansible.builtin.debug:
11+
var: pipx_path
12+
513
- name: Install pyenv
614
ansible.builtin.import_role:
715
name: staticdev.pyenv

0 commit comments

Comments
 (0)