Skip to content

Instantly share code, notes, and snippets.

@profhase
Last active May 15, 2017 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save profhase/57af3e715ec7faf5bf34d84299228591 to your computer and use it in GitHub Desktop.
Save profhase/57af3e715ec7faf5bf34d84299228591 to your computer and use it in GitHub Desktop.
role serial with variable
- hosts: webservers
serial: "{{ num_serial }}"
tasks:
- debug: inventory_hostname
# ansible-playbook serial_role.yml -e num_serial=3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment