Skip to content

Instantly share code, notes, and snippets.

@srgvg
Last active August 29, 2015 14:06
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 srgvg/009147ac6801b38dbea2 to your computer and use it in GitHub Desktop.
Save srgvg/009147ac6801b38dbea2 to your computer and use it in GitHub Desktop.
ansible_issues_9085
[defaults]
hash_behaviour=merge
nocows=true
---
authorized_keys:
root:
user1:
user2:
---
authorized_keys:
root:
user3:
[linuxServers]
linux1.example.com
---
- hosts: linux1.example.com
connection: local
tasks:
- name: group_by ansible_os_family
group_by: key=ansible-os-family-{{ ansible_os_family }}
changed_when: false
- name: output dictionary
debug: var=authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment