Fixup last ipsilon commit

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-08-20 15:02:30 +02:00
parent 4ffa70b0e0
commit 9e17fd1f37
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 12 additions and 6 deletions

View file

@ -84,16 +84,16 @@
tags:
- ipsilon
- include_tasks: patches.yml
tags:
- ipsilon
- patches
- name: Destroy admin ticket
command: kdestroy -A
tags:
- ipsilon
- import_tasks: patches.yml
tags:
- ipsilon
- patches
- name: make sure /etc/ipsilon/root is owned correctly
file:
path: "/etc/ipsilon/root"

View file

@ -18,7 +18,13 @@
- name: apply patches
ansible.builtin.shell:
chdir: "{{ ansible_facts['python3']['sitelib'] }}"
cmd: filterdiff --include '?/ipsilon/' /opt/ipsilon-patches/{{item}}.patch | patch -p1 --forward --batch
cmd: filterdiff --include '?/ipsilon/*' /opt/ipsilon-patches/{{item}}.patch | patch -p1 --forward --fuzz=0 --reject-file=- --batch
loop: "{{ ipsilon_patches }}"
register: result
ignore_errors: true
changed_when:
- "'Reversed (or previously applied) patch detected!' not in result.stdout"
- result.rc = 0
failed_when: "'FAILED' in result.stdout"
notify:
- restart apache