diff --git a/galaxy.yml b/galaxy.yml index c205e91..a283db4 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: clip name: hpc # The version of the collection. Must be compatible with semantic versioning -version: 1.1.1 +version: 1.1.2 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/roles/nhc/defaults/main.yml b/roles/nhc/defaults/main.yml index a34e200..0d4ed4b 100644 --- a/roles/nhc/defaults/main.yml +++ b/roles/nhc/defaults/main.yml @@ -27,3 +27,5 @@ nhc_group_random_user: "role.cbe.users" # overwrite default timeout nhc_timeout: + +nhc_watchdog_timeout: diff --git a/roles/nhc/tasks/main.yml b/roles/nhc/tasks/main.yml index ca0c13d..0a7c432 100644 --- a/roles/nhc/tasks/main.yml +++ b/roles/nhc/tasks/main.yml @@ -12,3 +12,21 @@ with_items: "{{ nhc_scripts }}" when: nhc_scripts.0 | length > 0 tags: nhc_reconfigure + +- name: Overwrite watchdog timeout + copy: + content: | + TIMEOUT={{ nhc_watchdog_timeout }} + dest: /etc/sysconfig/nhc + mode: 0644 + owner: root + group: root + when: nhc_watchdog_timeout + tags: nhc_reconfigure + +- name: Remove watchdog timeout + file: + dest: /etc/sysconfig/nhc + state: absent + when: not nhc_watchdog_timeout + tags: nhc_reconfigure