Skip to content

Commit 71ae0d0

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 71ae0d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

roles/edpm_network_config/tasks/nmstate_tool.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@
7070

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

0 commit comments

Comments
 (0)