Skip to content

Commit 357e521

Browse files
Merge pull request #1030 from slagle/bootc-update
Add bootc update tasks to edpm_update_system
2 parents 54f5629 + 5eb3933 commit 357e521

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

roles/edpm_update_services/tasks/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,20 @@
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
1616

17+
- name: Gather ansible_local facts
18+
ansible.builtin.setup:
19+
gather_subset:
20+
- "!all"
21+
- "!min"
22+
- "local"
23+
when:
24+
- ansible_local is not defined
1725

1826
- name: Update packages
1927
ansible.builtin.include_tasks: packages.yml
20-
when: edpm_update_services_enable_packages_update
28+
when:
29+
- edpm_update_services_enable_packages_update
30+
- ansible_local.bootc is not defined or not ansible_local.bootc
2131

2232
- name: Update containers
2333
ansible.builtin.include_tasks: containers.yml

roles/edpm_update_system/tasks/main.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,29 @@
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
1616

17+
- name: Gather ansible_local facts
18+
ansible.builtin.setup:
19+
gather_subset:
20+
- "!all"
21+
- "!min"
22+
- "local"
23+
when:
24+
- ansible_local is not defined
25+
1726
- name: Apply kernel patch via kpatch
1827
ansible.builtin.include_tasks: kpatch.yml
19-
when: edpm_update_system_enable_kpatch
28+
when:
29+
- edpm_update_system_enable_kpatch
30+
- ansible_local.bootc is not defined or not ansible_local.bootc
2031

2132
- name: Update packages
2233
ansible.builtin.include_tasks: packages.yml
23-
when: edpm_update_system_enable_packages_update
34+
when:
35+
- edpm_update_system_enable_packages_update
36+
- ansible_local.bootc is not defined or not ansible_local.bootc
37+
38+
- name: Update OS (bootc)
39+
ansible.builtin.import_role:
40+
name: osp.edpm.edpm_update
41+
tasks_from: bootc.yml
42+
when: ansible_local is defined and ansible_local.bootc

0 commit comments

Comments
 (0)