Created
September 15, 2015 16:55
-
-
Save trapier/507c42eadf9a984b3f81 to your computer and use it in GitHub Desktop.
fetch grub config from ly8 switches in ansible inventory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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.*") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
could possibly be made less skippy using group_by.