From a0717e450f5da11a1a03a29001a05ebaa646b3ff Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 3 Dec 2021 12:02:38 +0100 Subject: [PATCH] Add inotify for jetbrains IDE's --- roles/jetbrains/tasks/main.yml | 7 +++++++ roles/jetbrains/tasks/system-setup.yml | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 roles/jetbrains/tasks/system-setup.yml diff --git a/roles/jetbrains/tasks/main.yml b/roles/jetbrains/tasks/main.yml index aa100b2..5a2f639 100644 --- a/roles/jetbrains/tasks/main.yml +++ b/roles/jetbrains/tasks/main.yml @@ -1,2 +1,9 @@ --- +- stat: + path: /usr/local/bin/jetbrains-toolbox + register: toolbox_binary + - import_tasks: jetbrains-toolbox.yml + when: not toolbox_binary.stat.exists + +- import_tasks: system-setup.yml diff --git a/roles/jetbrains/tasks/system-setup.yml b/roles/jetbrains/tasks/system-setup.yml new file mode 100644 index 0000000..c459f33 --- /dev/null +++ b/roles/jetbrains/tasks/system-setup.yml @@ -0,0 +1,7 @@ +--- +- name: "Increase inotify for Jetbrains IDE's" + become: yes + ansible.posix.sysctl: + name: fs.inotify.max_user_watches + value: 524288 + state: present \ No newline at end of file