Skip to content

Instantly share code, notes, and snippets.

@trapier
Created September 15, 2015 16:55
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 trapier/507c42eadf9a984b3f81 to your computer and use it in GitHub Desktop.
Save trapier/507c42eadf9a984b3f81 to your computer and use it in GitHub Desktop.
fetch grub config from ly8 switches in ansible inventory
---
- hosts: swdut
vars:
platform_search: ly8
tasks:
- name: fetch grub config
fetch: src=/etc/default/grub dest=.
when: ansible_product_name | search(".*ly8.*") or
ansible_cmdline.cl_platform | default(omit) | search(".*ly8.*")
@trapier
Copy link
Author

trapier commented Sep 15, 2015

could possibly be made less skippy using group_by.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment