From 0377e5de93aae88bf17dd08a742727602aa53abb Mon Sep 17 00:00:00 2001 From: handreas <andreas.hamacher@monash.edu> Date: Fri, 24 Apr 2020 20:31:16 +0000 Subject: [PATCH] semaphores should be redhat only Former-commit-id: d1bfb86c77021639222b39207a9625837e263a61 --- roles/set_semaphore_count/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/set_semaphore_count/tasks/main.yml b/roles/set_semaphore_count/tasks/main.yml index 625791e9..1e2321d4 100644 --- a/roles/set_semaphore_count/tasks/main.yml +++ b/roles/set_semaphore_count/tasks/main.yml @@ -3,8 +3,10 @@ set_fact: SEM_COUNT: "500\t256000\t64\t10240" when: SEM_COUNT is not defined + - name: test value debug: msg="Value of semaphores is {{ SEM_COUNT }} " #" + - name: Place comment line in file lineinfile: path: /etc/sysctl.d/88-setSemaphore.conf @@ -45,6 +47,7 @@ register: current_sem changed_when: current_sem.stdout not in "{{ SEM_COUNT }}" check_mode: no + when: ansible_os_family == 'RedHat' #- debug: # var: current_sem -- GitLab