Clean up with "changed_when: False"
... instead of "ignore_errors: True"
This commit is contained in:
parent
3366d4a7c5
commit
b2f5558fa3
|
@ -2,8 +2,8 @@
|
||||||
- name: Look for already installed kitty
|
- name: Look for already installed kitty
|
||||||
shell: "which kitty"
|
shell: "which kitty"
|
||||||
register: kitty_installed
|
register: kitty_installed
|
||||||
ignore_errors: True
|
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
failed_when: False
|
||||||
|
|
||||||
|
|
||||||
- name: 'Try to install "kitty-terminfo"'
|
- name: 'Try to install "kitty-terminfo"'
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
state: latest
|
state: latest
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: kitty_terminfo_installed
|
register: kitty_terminfo_installed
|
||||||
when: kitty_installed is failed
|
when: kitty_installed.rc == 1
|
||||||
|
|
||||||
|
|
||||||
- name: "If no kitty(-terminfo) available, install manually"
|
- name: "If no kitty(-terminfo) available, install manually"
|
||||||
|
|
Loading…
Reference in a new issue