Skip to content

Instantly share code, notes, and snippets.

@halberom
Last active January 1, 2016 20:29
Show Gist options
  • Save halberom/8197132 to your computer and use it in GitHub Desktop.
Save halberom/8197132 to your computer and use it in GitHub Desktop.
# roles/sysctl/tasks/class_x.yml
- name: do some sysctl stuff for performance cluster
sysctl: name="net.ipv4.ip_forward" value=1
# roles/sysctl/tasks/class_y.yml
- name: do some sysctl stuff for performance cluster
sysctl: name="net.ipv4.ip_forward" value=0
[perf-cluster1]
host[1-6]
[perf-cluster1]
host[7-8]
[class-x]
host[1-2]
[class-y]
host[3-6]
[class-z]
host[7-8]
---
- hosts: class-x
roles:
- sysctl/class_x
- hosts: class-y
roles:
- sysctl/class_y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment