Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
conesphere.coreos.base.sources
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
conesphere
ansible
roles
conesphere.coreos.base.sources
Merge requests
!16
Main
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Main
main
into
stable
Overview
0
Commits
7
Pipelines
1
Changes
2
Merged
Michael Thaler
requested to merge
main
into
stable
2 years ago
Overview
0
Commits
7
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
stable
stable (base)
and
latest version
latest version
7deafac3
7 commits,
2 years ago
2 files
+
35
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
tasks/main.yml
+
34
−
20
Options
@@ -5,26 +5,36 @@
ansible.builtin.package_facts
:
manager
:
auto
-
name
:
Debugging section - MIGHT BE FALSE DISTRO; LOOK BELOW FOR CORRECTED FACTS
ansible.builtin.debug
:
msg
:
"
ansible_version.full
{{
ansible_version.full
}},
ansible_service_mgr:
{{
ansible_service_mgr
}}
ansible_distribution:
{{ansible_distribution}}
ansible_distribution_version:
{{ansible_distribution_version
}}
"
-
name
:
Workaround for unrecognized CoreOS. Register wheter /usr/bin/rpm-ostree exists. If yes set to coreos
ansible.builtin.stat
:
path
:
/usr/bin/rpm-ostree
register
:
hasrpmostree
-
name
:
Workaround for unrecognized CoreOS. Correct Coreos ansible_distribution fact
when
:
hasrpmostree.stat.exists
ansible.builtin.set_fact
:
ansible_distribution
:
"
CoreOs"
-
name
:
Register whether we are running in a virtual
when
:
-
ansible_service_mgr == 'systemd'
ansible.builtin.command
:
systemd-detect-virt
register
:
systemddetectvirt
failed_when
:
"
(
systemddetectvirt.rc
!=
0
)
and
(
systemddetectvirt.stdout
!=
'none'
)"
-
name
:
Debugging section
ansible.builtin.debug
:
msg
:
"
ansible_version.full
{{
ansible_version.full
}},
ansible_service_mgr:
{{
ansible_service_mgr
}}
ansible_distribution:
{{ansible_distribution}}
ansible_distribution_version:
{{ansible_distribution_version
}}
"
-
block
:
-
name
:
Debugging section - MIGHT BE FALSE DISTRO; LOOK BELOW FOR CORRECTED FACTS
ansible.builtin.debug
:
msg
:
"
ansible_version.full
{{
ansible_version.full
}},
ansible_service_mgr:
{{
ansible_service_mgr
}}
ansible_distribution:
{{ansible_distribution}}
ansible_distribution_version:
{{ansible_distribution_version
}}
"
-
name
:
Workaround for unrecognized CoreOS. Register wheter /usr/bin/rpm-ostree exists. If yes set to coreos
ansible.builtin.stat
:
path
:
/usr/bin/rpm-ostree
register
:
hasrpmostree
-
name
:
Workaround for unrecognized CoreOS. Correct Coreos ansible_distribution fact
when
:
hasrpmostree.stat.exists
ansible.builtin.set_fact
:
ansible_distribution
:
"
CoreOs"
-
name
:
Debugging section
ansible.builtin.debug
:
msg
:
"
ansible_version.full
{{
ansible_version.full
}},
ansible_service_mgr:
{{
ansible_service_mgr
}}
ansible_distribution:
{{ansible_distribution}}
ansible_distribution_version:
{{ansible_distribution_version
}}
detect-virt-result:
{{
systemddetectvirt.stdout
}}"
#### CLEANUP SECTION
-
name
:
ensure rpm-ostree not buisy
when
:
-
"
'podman'
is
not
in
systemddetectvirt.stdout"
ansible.builtin.shell
:
cmd
:
rpm-ostree status
register
:
rpmostreestatus
@@ -39,7 +49,7 @@
block
:
-
name
:
clear rpm-ostree cache
ansible.builtin.shell
:
cmd
:
rpm-ostree cleanup -mpb
cmd
:
rpm-ostree cleanup -mpb
; rpm-ostree refresh-md -f
-
name
:
temporarily remove conesphere packages for upgrade
community.general.rpm_ostree_pkg
:
@@ -57,7 +67,7 @@
-
( "'hardware' not in group_names" ) and ( "'no_reboot' not in group_names" )
-
cleanuppackages.changed
ansible.builtin.reboot
:
reboot_timeout
:
6
00
reboot_timeout
:
9
00
-
name
:
clear rpm-ostree cache
ansible.builtin.shell
:
@@ -77,7 +87,7 @@
-
( "'hardware' not in group_names" ) and ( "'no_reboot' not in group_names" )
-
ostreeupgraderslt.rc !=
77
ansible.builtin.reboot
:
reboot_timeout
:
6
00
reboot_timeout
:
9
00
#### SOURCES SECTION
@@ -202,6 +212,8 @@
-
name
:
install sources packages block
block
:
-
name
:
ensure rpm-ostree not buisy
when
:
-
"
'podman'
is
not
in
systemddetectvirt.stdout"
ansible.builtin.shell
:
cmd
:
rpm-ostree status
register
:
rpmostreestatus
@@ -247,6 +259,8 @@
when
:
sourcepkgs.changed
-
name
:
ensure rpm-ostree not buisy
when
:
-
"
'podman'
is
not
in
systemddetectvirt.stdout"
ansible.builtin.shell
:
cmd
:
rpm-ostree status
register
:
rpmostreestatus
@@ -254,13 +268,13 @@
delay
:
20
retries
:
20
-
name
:
conditional reboot
during cleanup
2
-
name
:
conditional reboot
after sources
when
:
-
( inventory_hostname != 'localhost' )
-
( "'hardware' not in group_names" ) and ( "'no_reboot' not in group_names" )
-
sourcepkgs.changed
ansible.builtin.reboot
:
reboot_timeout
:
6
00
reboot_timeout
:
9
00
#### INSTALL SECTION
Loading