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

Specify the state for package installation as "latest", but allow for overriding if needed #397

Open
wants to merge 1 commit into
base: qa/1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ archivematica_src_rpm_repositories:
gpgkey: "https://packages.archivematica.org/1.10.x/key.asc"
gpgcheck: 1

archivematica_src_package_state: latest

# Database settings
archivematica_src_am_db_host: "localhost" # Archivematica database host
archivematica_src_am_db_name: "MCP" # Archivematica database name
Expand Down
4 changes: 2 additions & 2 deletions tasks/install-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
- name: "Install/Upgrade Debian packages: {{ name }}"
apt:
name: "{{ packages }}"
state: "{{ state | default('latest') }}"
state: "{{ archivematica_src_package_state | default('latest') }}"
when:
- ansible_os_family == "Debian"

- name: "Install/Upgrade RHEL/CentOS/Rocky packages: {{ name }}"
yum:
name: "{{ packages }}"
state: "{{ state | default('latest') }}"
state: "{{ archivematica_src_package_state | default('latest') }}"
when:
- ansible_os_family in ['RedHat','Rocky']