Skip to content

Commit 247bf36

Browse files
committed
clean: remove nmstate result
Assume linux system roles would fail before and we never reach this step in case of failure.
1 parent 8d75d58 commit 247bf36

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

roles/edpm_network_config/tasks/nmstate_tool.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
- name: Load system-roles.network tasks [nmstate]
6161
ansible.builtin.include_role:
6262
name: "{{ lookup('ansible.builtin.env', 'EDPM_SYSTEMROLES', default='fedora.linux_system_roles') + '.network' }}"
63-
register: nmstate_result
6463

6564
- name: Ensure /var/lib/edpm-config exists
6665
ansible.builtin.file:
@@ -70,8 +69,6 @@
7069

7170
- name: Write rc of nmstate run
7271
ansible.builtin.copy:
73-
content: "{{ nmstate_result.rc if nmstate_result.rc is defined else (1 if (nmstate_result.failed|default(false)) else 0) }}"
72+
content: "0"
7473
dest: /var/lib/edpm-config/nmstate.returncode
7574
mode: "0644"
76-
when:
77-
- nmstate_result is defined

0 commit comments

Comments
 (0)