-
Notifications
You must be signed in to change notification settings - Fork 19
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
ci: Add ALP-Dolomite var file #141
Conversation
tasks/setup-zypper.yml
Outdated
reboot: | ||
when: ansible_distribution == 'ALP-Dolomite' | ||
|
||
- name: Flush handlers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you reboot the system, do you still need to run the handlers?
# handlers file for cockpit
- name: Reload systemd
systemd:
daemon_reload: true
- name: Restart cockpit
service:
name: "{{ __cockpit_daemon }}"
# noqa args[module]
state: "{{ 'restarted' if cockpit_started | bool else 'stopped' }}"
not sure how ALP-Dolomite works - it will not perform these actions upon reboot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A reboot is required after installing new packages due to the use of transactional updates, the 'Flush handlers' task is redundant I'll update the changes
tasks/setup-zypper.yml
Outdated
when: cockpit_packages is defined | ||
|
||
- name: Ensure Cockpit Web Console packages are installed. | ||
zypper: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zypper: | |
community.general.zypper: |
Also - change meta/collection-requirements.yml
to look like this:
# SPDX-License-Identifier: MIT
---
collections:
- ansible.posix
- community.general
- fedora.linux_system_roles
That should make linters and ansible-plugin-scan happy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the suggestion, @richm . I have updated the meta/collection-requirements.yml as advised and made the necessary changes to the zypper reference
Enhancement: This pull request adds the
ALP-Dolomite.yml
variable file and setup-zypper.yml to support SUSE ALP-Dolomite configurations.Reason: The existing configuration does not cover SUSE ALP.
Result: Works as expected in the added operating system.
Issue Tracker Tickets (Jira or BZ if any):na