forked from calvinbui/ansible-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
7 add support for fedora linux (#10)
Add support for Fedora 35
- Loading branch information
1 parent
8f12b2d
commit f1118f6
Showing
9 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
- centos8 | ||
- debian10 | ||
- debian11 | ||
- fedora35 | ||
- ubuntu2004 | ||
- ubuntu1804 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ jobs: | |
- centos8 | ||
- debian10 | ||
- debian11 | ||
- fedora35 | ||
- ubuntu2004 | ||
- ubuntu1804 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
# Based on https://docs.docker.com/engine/install/fedora/ | ||
- name: Ensure old versions of Docker are not installed | ||
ansible.builtin.dnf: | ||
name: | ||
- docker | ||
- docker-client | ||
- docker-client-latest | ||
- docker-common | ||
- docker-latest | ||
- docker-latest-logrotate | ||
- docker-logrotate | ||
- docker-selinux | ||
- docker-engine-selinux | ||
- docker-engine | ||
state: absent | ||
changed_when: false | ||
|
||
- name: Install Docker dependencies | ||
ansible.builtin.dnf: | ||
name: | ||
- dnf-plugins-core | ||
state: present | ||
register: result | ||
until: result is success | ||
retries: 5 | ||
delay: 5 | ||
changed_when: false | ||
|
||
- name: Add Docker repository | ||
ansible.builtin.command: dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo | ||
changed_when: false | ||
|
||
- name: Install Docker | ||
ansible.builtin.dnf: | ||
name: | ||
- docker-ce | ||
- docker-ce-cli | ||
- containerd.io | ||
state: present | ||
register: result | ||
until: result is success | ||
retries: 5 | ||
delay: 5 | ||
changed_when: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters