Last active
          August 29, 2015 14:06 
        
      - 
      
- 
        Save srgvg/009147ac6801b38dbea2 to your computer and use it in GitHub Desktop. 
    ansible_issues_9085
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | [defaults] | |
| hash_behaviour=merge | |
| nocows=true | 
  
    
      This file contains hidden or 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
    
  
  
    
  | --- | |
| authorized_keys: | |
| root: | |
| user1: | |
| user2: | 
  
    
      This file contains hidden or 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
    
  
  
    
  | --- | |
| authorized_keys: | |
| root: | |
| user3: | 
  
    
      This file contains hidden or 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
    
  
  
    
  | [linuxServers] | |
| linux1.example.com | |
  
    
      This file contains hidden or 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: 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