Skip to content

Commit 52a93f9

Browse files
committed
Use local fact for bootc
Signed-off-by: Brendan Shephard <[email protected]>
1 parent e110cc1 commit 52a93f9

File tree

15 files changed

+18
-18
lines changed

15 files changed

+18
-18
lines changed

playbooks/bootstrap.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
name: osp.edpm.edpm_kernel
4343
tags:
4444
- edpm_kernel
45-
when: not bootc
45+
when: not ansible_local.bootc
4646
- name: Import edpm_tuned
4747
ansible.builtin.import_role:
4848
name: osp.edpm.edpm_tuned
@@ -54,11 +54,11 @@
5454
tasks_from: kernelargs.yml
5555
tags:
5656
- edpm_kernel
57-
when: not bootc
57+
when: not ansible_local.bootc
5858
- name: Configure KSM for kernel
5959
ansible.builtin.import_role:
6060
name: osp.edpm.edpm_kernel
6161
tasks_from: ksm.yml
6262
tags:
6363
- edpm_kernel
64-
when: not bootc
64+
when: not ansible_local.bootc

roles/edpm_container_manage/tasks/shutdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
loop:
2828
- 'edpm-container-shutdown'
2929
- 'edpm-start-podman-container'
30-
when: not edpm_use_bootc
30+
when: not ansible_local.bootc
3131

3232
- name: "Create systemd preset dir"
3333
ansible.builtin.file:

roles/edpm_kernel/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
register: _install_packages_result
2828
when:
2929
- edpm_kernel_extra_packages | length > 0
30-
- not bootc
30+
- not ansible_local.bootc
3131
until: _install_packages_result is succeeded
3232
retries: "{{ edpm_kernel_download_retries }}"
3333
delay: "{{ edpm_kernel_download_delay }}"

roles/edpm_libvirt/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
delay: "{{ edpm_libvirt_download_delay }}"
1414
notify:
1515
- Restart libvirt
16-
when: not bootc
16+
when: not ansible_local.bootc
1717

1818
- name: Ensure monolithic libvirt and tcp socket activation is not enabled or running
1919
tags:

roles/edpm_logrotate_crond/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
retries: "{{ edpm_logrotate_crond_download_retries }}"
2525
delay: "{{ edpm_logrotate_crond_download_delay }}"
2626
when:
27-
- not bootc
27+
- not ansible_local.bootc
2828

2929
- name: Gather SELinux fact if needed
3030
when:

roles/edpm_network_config/tasks/network_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
until: edpm_network_config_onc_download is succeeded
4848
retries: "{{ edpm_network_config_download_retries }}"
4949
delay: "{{ edpm_network_config_download_delay }}"
50-
when: not bootc
50+
when: not ansible_local.bootc
5151

5252
- name: Ensure /var/lib/edpm-config directory exists
5353
become: true

roles/edpm_nvmeof/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
ansible.builtin.package:
3030
name: nvme-cli
3131
state: present
32-
when: not bootc
32+
when: not ansible_local.bootc

roles/edpm_ovs/tasks/download_cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
until: _install_packages_result is succeeded
1010
retries: "{{ edpm_ovs_download_retries }}"
1111
delay: "{{ edpm_ovs_download_delay }}"
12-
when: not bootc
12+
when: not ansible_local.bootc

roles/edpm_ovs/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
until: edpm_ovs_package_install is succeeded
1212
retries: "{{ edpm_ovs_download_retries }}"
1313
delay: "{{ edpm_ovs_download_delay }}"
14-
when: not bootc
14+
when: not ansible_local.bootc
1515

1616
- name: Ensure ovs services are enabled and running
1717
tags:

roles/edpm_podman/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
until: edpm_podman_package_download is succeeded
2626
retries: "{{ edpm_podman_download_retries }}"
2727
delay: "{{ edpm_podman_download_delay }}"
28-
when: not bootc
28+
when: not ansible_local.bootc
2929

3030
- name: Ensure we get the ansible interfaces facts
3131
when:

0 commit comments

Comments
 (0)