From 212bd541e63b2b9d2a4d29a1c275b48ce67f008a Mon Sep 17 00:00:00 2001 From: handreas <andreas.hamacher@monash.edu> Date: Tue, 14 Apr 2020 11:14:59 +0000 Subject: [PATCH] disabling semaphores for ubuntu Former-commit-id: ae802d3d865034c26a42ad8bc4f00dbe19c61a4f --- roles/set_semaphore_count/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/set_semaphore_count/tasks/main.yml b/roles/set_semaphore_count/tasks/main.yml index 01203f6d..eb3561ff 100644 --- a/roles/set_semaphore_count/tasks/main.yml +++ b/roles/set_semaphore_count/tasks/main.yml @@ -16,6 +16,7 @@ mode: "u+rwx,o=rx,g=rx" become: true become_user: root + when: ansible_os_family == 'RedHat' - name: Place comment line in file lineinfile: @@ -24,6 +25,7 @@ state: present become: true become_user: root + when: ansible_os_family == 'RedHat' - name: Place comment line in file lineinfile: @@ -36,9 +38,11 @@ mode: "u+rwx,o=rx,g=rx" become: true become_user: root + when: ansible_os_family == 'RedHat' - name: set semaphore count now shell: "/usr/bin/echo {{ SEM_COUNT }} > /proc/sys/kernel/sem" become: true become_user: root + when: ansible_os_family == 'RedHat' -- GitLab