Skip to content

Commit

Permalink
Yoda rulesets roles: notification changes
Browse files Browse the repository at this point in the history
Trigger iRODS service restarts after ruleset changes. This is sometimes
needed to effectuate changes after switching to different ruleset branches.
  • Loading branch information
stsnel committed Dec 7, 2024
1 parent e3a0047 commit 6879c24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/yoda_rulesets/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# copyright Utrecht University

- name: Restart iRODS
ansible.builtin.service:
name: irods
state: restarted
3 changes: 3 additions & 0 deletions roles/yoda_rulesets/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
with_items: "{{ extra_rulesets + core_rulesets }}"
when: "'repo' in item and 'patch' not in item"
register: repochanges
notify: Restart iRODS


- name: Check out rulesets with local patches from Github
Expand All @@ -62,6 +63,7 @@
with_items: "{{ extra_rulesets + core_rulesets }}"
when: "'repo' in item and 'patch' in item"
register: patch_repochanges
notify: Restart iRODS


- name: Sync rulesets with repos before applying patches
Expand Down Expand Up @@ -98,6 +100,7 @@
cmd: "git apply /etc/irods/{{ item.name }}.patch"
with_items: "{{ extra_rulesets + core_rulesets }}"
when: "'repo' in item and 'patch' in item and item['patch'] not in ['']"
notify: Restart iRODS


- name: Remove temporary rule and cache files
Expand Down

0 comments on commit 6879c24

Please sign in to comment.