Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Last active January 8, 2019 08:42
Show Gist options
  • Save dgadiraju/ca1013077b1805ee2525ca574f06ce7e to your computer and use it in GitHub Desktop.
Save dgadiraju/ca1013077b1805ee2525ca574f06ce7e to your computer and use it in GitHub Desktop.
ansible all \
-i hosts \
-a "sudo sysctl vm.swappiness=0" \
--private-key=~/.ssh/google_compute_engine \
--become
ansible all \
-i hosts \
-m synchronize \
-a "src=files/etc/sysctl.conf dest=/etc" \
-u root \
--become \
--private-key=~/.ssh/google_compute_engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment