Skip to content

Commit

Permalink
Also support older Fedora
Browse files Browse the repository at this point in the history
Fedora < 41 still has --set-enabled Fedora >= 41 has setopt. Now
supports both
  • Loading branch information
wzzrd authored and haxorof committed Dec 8, 2024
1 parent 7b68eaf commit 92b45aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ docker_cmd_enable_disable_repo:
|| yum-config-manager --{{ (_item_enabled == true) | ternary('enable', 'disable') }} docker-ce-{{ item }}
Fedora: >
dnf config-manager --set-{{ (_item_enabled == true) | ternary('enabled', 'disabled') }} docker-ce-{{ item }}
|| dnf config-manager setopt docker-ce-{{item}}.enabled={{ (_item_enabled == true) | ternary('1', '0') }}
docker_cmd_update_repo_cache:
RedHat: type dnf && dnf makecache || yum makecache
Expand Down

0 comments on commit 92b45aa

Please sign in to comment.