Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
7b7dfae4
Commit
7b7dfae4
authored
Apr 03, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't do yum things when python3
parent
bd40b869
Pipeline
#2866
passed with stage
in 6 minutes and 25 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
tasks/docker.yml
tasks/docker.yml
+1
-1
tasks/main.yml
tasks/main.yml
+1
-1
tasks/upgrade.yml
tasks/upgrade.yml
+1
-1
No files found.
tasks/docker.yml
View file @
7b7dfae4
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
yum
:
yum
:
name
:
docker-ce,docker-ce-cli,containerd.io
name
:
docker-ce,docker-ce-cli,containerd.io
update_cache
:
yes
update_cache
:
yes
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int ==
7
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7
and ansible_python.version.major ==
2
notify
:
restart_docker
notify
:
restart_docker
-
name
:
安装 Docker (dnf)
-
name
:
安装 Docker (dnf)
become
:
true
become
:
true
...
...
tasks/main.yml
View file @
7b7dfae4
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
when
:
ansible_os_family == 'Debian'
when
:
ansible_os_family == 'Debian'
-
name
:
yum
-
name
:
yum
include_tasks
:
yum.yml
include_tasks
:
yum.yml
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int ==
7
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7
and ansible_python.version.major ==
2
-
name
:
dnf
-
name
:
dnf
include_tasks
:
dnf.yml
include_tasks
:
dnf.yml
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
...
...
tasks/upgrade.yml
View file @
7b7dfae4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
name
:
'
*'
name
:
'
*'
update_cache
:
true
update_cache
:
true
state
:
latest
state
:
latest
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int ==
7
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7
and ansible_python.version.major ==
2
-
name
:
dnf update
-
name
:
dnf update
become
:
true
become
:
true
dnf
:
dnf
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment