Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from dderemiah/pers_req_fix
Browse files Browse the repository at this point in the history
Initialize persistent-requirements from requirement-files
  • Loading branch information
ansibleguy authored Dec 6, 2023
2 parents aedf1c7 + 86ec134 commit 194c209
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tasks/debian/requirements_persistent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@

- name: Semaphore | Persistent-Requirements | Installing ansible-collections
ansible.builtin.shell: "source {{ SEM_CONFIG.path.venv }}/bin/activate &&
ansible-galaxy collection install {{ item }} -p {{ SEM_HC.collections }}"
ansible-galaxy collection install -r {{ SEM_HC.req_prefix }}collections.yml -p {{ SEM_HC.collections }}"
args:
executable: '/bin/bash'
environment:
LANG: 'en_US.UTF-8'
LC_ALL: 'en_US.UTF-8'
register: sem_req_col
changed_when: "'was installed' in sem_req_col.stdout"
loop: "{{ SEM_CONFIG.requirements.collections }}"

- name: Semaphore | Persistent-Requirements | Writing role-requirements to file
ansible.builtin.copy:
Expand All @@ -50,15 +49,14 @@

- name: Semaphore | Persistent-Requirements | Installing ansible-roles
ansible.builtin.shell: "source {{ SEM_CONFIG.path.venv }}/bin/activate &&
ansible-galaxy role install {{ item }} -p {{ SEM_HC.roles }}"
ansible-galaxy role install -r {{ SEM_HC.req_prefix }}roles.yml -p {{ SEM_HC.roles }}"
args:
executable: '/bin/bash'
environment:
LANG: 'en_US.UTF-8'
LC_ALL: 'en_US.UTF-8'
register: sem_req_role
changed_when: "'was installed' in sem_req_role.stdout"
loop: "{{ SEM_CONFIG.requirements.roles }}"

- name: Semaphore | Persistent-Requirements | Update-service
ansible.builtin.template:
Expand Down

0 comments on commit 194c209

Please sign in to comment.