fix(molecule): working again, added test for provisioner load_vars

This commit is contained in:
NaeiKinDus 2025-03-11 00:00:00 +00:00
parent 6707ece8e0
commit c6670c1c5f
Signed by: WoodSmellParticle
GPG key ID: 8E52ADFF7CA8AE56
8 changed files with 38 additions and 4 deletions

View file

@ -243,6 +243,7 @@
become_user: "{{ development_user_account }}"
ansible.builtin.command:
cmd: "pipx inject {{ item.venv }} {{ item.extension }}"
# @todo not portable, will not work as expected, replace with actual python version
creates:
"{{ ansible_facts['getent_passwd'][development_user_account][4] }}/.local/pipx/venvs/{{ item.venv }}/lib/python3.11/site-packages/{{ item.creates }}"
loop:

View file

@ -23,7 +23,6 @@
register: helm_local_version_exec
- name: find latest available version
connection: local
ansible.builtin.shell: |-
curl -sSL https://api.github.com/repos/helm/helm/releases/latest | jq -r '.tag_name'
register: latest_helm_version_exec

View file

@ -23,7 +23,6 @@
register: kubectl_local_version_exec
- name: find latest available version
connection: local
ansible.builtin.command: curl -L -s https://dl.k8s.io/release/stable.txt
register: latest_kubectl_version_exec
when: kubectl_install_version is falsy or kubectl_install_version == "latest"

View file

@ -3,7 +3,7 @@
block:
- name: save current provisioner hostname
ansible.builtin.set_fact:
provisioner_hostname: '{{ lookup("ansible.builtin.pipe", "hostname") }}'
provisioner_hostname: '{{ provisioner_hostname | default(lookup("ansible.builtin.pipe", "hostname"), true) }}'
- name: retrieve hostnames and IP addresses of all provisioners
ansible.builtin.set_fact:
provisioner_controllers_list:

View file

@ -148,9 +148,10 @@
- { path: '/srv/git/work' }
- { path: '/srv/storage' }
- name: '[emacs] fetch emacs configuration files'
- name: 'DISABLED: [emacs] fetch emacs configuration files'
become: true
become_user: "{{ workstation_user_account }}"
when: false
ansible.builtin.git:
repo: "https://gitlab.0x2a.ninja/naeikindus/emacsd.git"
dest: "{{ ansible_facts['getent_passwd'][workstation_user_account][4] }}/.emacs.d"