Skip to content

Commit

Permalink
add pkg lock check before pipx installations
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanis committed Nov 1, 2024
1 parent 7e7cc2c commit 922a385
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions tasks/ssh-ldap-pubkey.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
---
- name: Install ssh-ldap-pubkey and wrapper script via pipx
community.general.pipx:
name: ssh-ldap-pubkey
state: latest
environment:
PIPX_HOME: /usr/local/share/pipx
PIPX_BIN_DIR: /usr/local/bin
- name: ssh-ldap-pubkey | Install pipx and ssh-ldap-pubkey package
block:
- name: Wait for locks
ansible.builtin.include_tasks:
file: wait_for_locks.yml

- name: packages-pip | Install pipx
ansible.builtin.package:
name: pipx
state: present
environment:
PIPX_HOME: /usr/local/share/pipx
PIPX_BIN_DIR: /usr/local/bin
register: pipx_install
until: pipx_install is not failed

- name: Install ssh-ldap-pubkey and wrapper script via pipx
community.general.pipx:
name: ssh-ldap-pubkey
state: latest
environment:
PIPX_HOME: /usr/local/share/pipx
PIPX_BIN_DIR: /usr/local/bin
register: ssh_ldap_pubkey_install
until: ssh_ldap_pubkey_install is not failed

0 comments on commit 922a385

Please sign in to comment.