Skip to content
Snippets Groups Projects
Commit d1bfb86c authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

semaphores should be redhat only

parent 4cd5f66b
No related branches found
No related tags found
2 merge requests!310Gpu2,!304Gpu
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
set_fact: set_fact:
SEM_COUNT: "500\t256000\t64\t10240" SEM_COUNT: "500\t256000\t64\t10240"
when: SEM_COUNT is not defined when: SEM_COUNT is not defined
- name: test value - name: test value
debug: msg="Value of semaphores is {{ SEM_COUNT }} " #" debug: msg="Value of semaphores is {{ SEM_COUNT }} " #"
- name: Place comment line in file - name: Place comment line in file
lineinfile: lineinfile:
path: /etc/sysctl.d/88-setSemaphore.conf path: /etc/sysctl.d/88-setSemaphore.conf
...@@ -45,6 +47,7 @@ ...@@ -45,6 +47,7 @@
register: current_sem register: current_sem
changed_when: current_sem.stdout not in "{{ SEM_COUNT }}" changed_when: current_sem.stdout not in "{{ SEM_COUNT }}"
check_mode: no check_mode: no
when: ansible_os_family == 'RedHat'
#- debug: #- debug:
# var: current_sem # var: current_sem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment