Skip to content

Instantly share code, notes, and snippets.

@nitanka
Created August 14, 2017 06:49
Show Gist options
  • Save nitanka/37e6d4878b19032807f16eb6f972fa66 to your computer and use it in GitHub Desktop.
Save nitanka/37e6d4878b19032807f16eb6f972fa66 to your computer and use it in GitHub Desktop.
Ansible: To clear cache of servers
- name: Installing HADOOP CLUSTER
hosts: <hostgroup>
become: yes
gather_facts: true
tasks:
- name: Clearing the cache
shell: sync; echo 3 > /proc/sys/vm/drop_caches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment