Skip to content
Snippets Groups Projects
Commit 218fc615 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: only run NFS tasks if Rosetta is stopped

parent 03c17131
No related branches found
No related tags found
No related merge requests found
...@@ -20,8 +20,17 @@ ...@@ -20,8 +20,17 @@
tags: [users] tags: [users]
- import_tasks: "configure_sanitytest.yml" - import_tasks: "configure_sanitytest.yml"
tags: [users, sanitytest] tags: [users, sanitytest]
- import_tasks: configure_nfs_mounts.yml
- name: find out if Rosetta is running, to make sure NFS tasks are only executed if Rosetta is OFF
shell: 'ps -ef | grep -v "grep" | grep "DAPP_ROLE"'
register: rosetta_status
failed_when: false
tags: [mount, nfs]
- import_tasks: "configure_nfs_mounts.yml"
# when: ansible_facts.services['exlibris'].state != "running"
when: rosetta_status.rc != 0
tags: [mount, nfs] tags: [mount, nfs]
- import_tasks: install_checkmk_plugins.yml - import_tasks: install_checkmk_plugins.yml
tags: [checkmk, monitoring] tags: [checkmk, monitoring]
- import_tasks: configure_iptables.yml - import_tasks: configure_iptables.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment