summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author陆秋文 <[email protected]>2022-11-19 14:29:29 +0000
committer陆秋文 <[email protected]>2022-11-19 14:29:29 +0000
commite131b9dfd3245626ccb2daaac8404a2bed7659af (patch)
treed21083ecc6cd9f13cc1249e310fd4a305c91daaf
parente0e6c1abf732bf827684c690dc09b6fea330ebd1 (diff)
hotfix for the dnf broken caused by installing libnslv22.11-rc0
-rw-r--r--ansible/roles/container-tools-install/tasks/main.yml23
1 files changed, 17 insertions, 6 deletions
diff --git a/ansible/roles/container-tools-install/tasks/main.yml b/ansible/roles/container-tools-install/tasks/main.yml
index 4a1ff456..6f2d4e33 100644
--- a/ansible/roles/container-tools-install/tasks/main.yml
+++ b/ansible/roles/container-tools-install/tasks/main.yml
@@ -1,3 +1,13 @@
+- name: "update all"
+ yum:
+ name: '*'
+ conf_file: "{{ rpm_repo_config_path }}"
+ state: latest
+
+- name: "hotfix for dnf broken"
+ shell:
+ cmd: "dnf upgrade --refresh rpm glibc && rm /var/lib/rpm/.rpm.lock && dnf upgrade dnf"
+
- name: "install tcpdump"
yum:
name: tcpdump
@@ -10,12 +20,6 @@
conf_file: "{{ rpm_repo_config_path }}"
state: present
-- name: "install libnsl"
- yum:
- name: libnsl
- conf_file: "{{ rpm_repo_config_path }}"
- state: present
-
- name: "install iproute"
yum:
name: iproute
@@ -76,10 +80,17 @@
conf_file: "{{ rpm_repo_config_path }}"
state: present
+- name: "install libnsl"
+ yum:
+ name: libnsl
+ conf_file: "{{ rpm_repo_config_path }}"
+ state: present
+
- name: "install perf"
yum:
name: perf
conf_file: "{{ rpm_repo_config_path }}"
state: present
+ releasever: 8.6