Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Playbook to update requirements.yml #2025

Open
zzecool opened this issue May 19, 2024 · 4 comments
Open

Feature: Playbook to update requirements.yml #2025

zzecool opened this issue May 19, 2024 · 4 comments
Labels

Comments

@zzecool
Copy link

zzecool commented May 19, 2024

Related to

Service (scheduled tasks, alerts), Ansible (task execution), Docker

Impact

better user experience

Missing Feature

I was reading the documention about the /home/semaphore/requirements.yml at : https://docs.semui.co/administration-guide/installation_manually#ansible-collections-and-roles-1

I believe the most refined way to perform the actual installation or update is by using a Task in Semaphore for localhost.

1: Create and populate the requirements.yml.
2: Make a task with the following playbook.

---
- name: Install or upgrade Ansible collections and roles
  hosts: localhost
  tasks:
    - name: Install or upgrade collections
      command: ansible-galaxy collection install --upgrade -r /home/semaphore/requirements.yml
      ignore_errors: yes

    - name: Install roles
      command: ansible-galaxy role install --force -r /home/semaphore/requirements.yml
      ignore_errors: yes

3: Schedule it to run with cron.
4: You are always up to date.

Implementation

As a build in playbook untill you will add in the web interface a way to add collections and roles.

Design

No response

@tboerger
Copy link
Collaborator

Why should this be defined as a playbook? If the requirements file is part of the repository it's getting updated before the playbook defined by the task starts.

@zzecool
Copy link
Author

zzecool commented May 23, 2024

Why should this be defined as a playbook? If the requirements file is part of the repository it's getting updated before the playbook defined by the task starts.

So your playbooks are more efficient.

@tboerger
Copy link
Collaborator

How would this be more efficient?

@zzecool
Copy link
Author

zzecool commented May 23, 2024

How would this be more efficient?

Downloading the same things over and over again does not seem efficient to me.

Also you have a whole page in the Docs about the exact thing

image

So instead of this :

image

You use Ansible, make a playbook and run the Task throught the Semaphore UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants