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

Changed roles and collections install using the generated requirement… #3

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading