Skip to content

Commit 870fca1

Browse files
authored
switch from yum to dnf (#20)
1 parent 2b2a309 commit 870fca1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- yum
88

99
- { import_tasks: keys.yml, tags: ['cvmfs', 'keys'] }
10-
- { import_tasks: yum.yml, tags: ['cvmfs', 'yum'] }
10+
- { import_tasks: repos.yml, tags: ['cvmfs', 'repos'] }
1111
- { import_tasks: users.yml, tags: ['cvmfs', 'users'] }
1212
- { import_tasks: storage.yml, tags: ['cvmfs', 'storage'], when: cvmfs_client_configure_storage | bool }
1313
- { import_tasks: packages.yml, tags: ['cvmfs', 'packages'] }
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22

3-
# Target hosts will need internet access anyway to install the actual packages via yum, so we might as well
4-
# install the yum config from the internet as well - if a version is not already installed.
3+
# Target hosts will need internet access anyway to install the actual packages, so we might as well
4+
# install the config from the internet as well - if a version is not already installed.
55
# There is no benefit to abstracting this with the yum_repository module, and doing so would break idempotence
66
# because these packages update themselves via their own yum repositories.
77

88
- name: Install CernVM yum repository
9-
yum:
9+
ansible.builtin.dnf:
1010
name: https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm
1111
state: present
1212
validate_certs: yes
1313
when: ansible_facts.packages['cvmfs-release'] is not defined
1414

1515
- name: Install Compute Canada yum repository
16-
yum:
16+
ansible.builtin.dnf:
1717
name: https://package.computecanada.ca/yum/cc-cvmfs-public/prod/RPM/computecanada-release-latest.noarch.rpm
1818
state: present
1919
validate_certs: yes
@@ -22,7 +22,7 @@
2222
- ansible_facts.packages['computecanada-release'] is not defined
2323

2424
- name: Install other prerequisite packages
25-
yum:
25+
ansible.builtin.dnf:
2626
name: [ 'lvm2' ]
2727
when: cvmfs_client_configure_storage | bool
2828

0 commit comments

Comments
 (0)