Replace ignore_errors with failed_when
This commit is contained in:
1 parent
a3b772c543
commit
5312ec8cc6
4 files changed
+4
-4
No files matched your search
@@ -111,7 +111,7 @@
|
||||
- name: Extra Configuration
|
||||
block:
|
||||
- name: Append lines to vimrc
|
||||
ignore_errors: true
|
||||
failed_when: false
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ '/mnt/etc/vim/vimrc' if os | lower in ['debian11', 'debian12', 'ubuntu', 'ubuntu-lts'] else '/mnt/etc/vimrc' }}"
|
||||
line: "{{ item }}"
|
||||
|
||||
Reference in new issue
Block a user