Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.38 KB | None | 0 0
  1. # source: https://www.irccloud.com/pastebin/raw/K116uBi4
  2.  
  3. ./ansible.cfg
  4. ./inventory
  5. ./inventory/hosts.yaml
  6. ./inventory/group_vars
  7. ./inventory/group_vars/all
  8. ./inventory/group_vars/all/credentials.yml
  9.  
  10. ansible.cfg
  11.  
  12.     [defaults]
  13.     inventory = inventory
  14.  
  15. hosts.yaml
  16.  
  17.     all:
  18.       hosts:
  19.         srv1.example.org:
  20.         srv2.example.org:
  21.         srv3.example.org:
  22. credentials.yml
  23.  
  24.     $ANSIBLE_VAULT;1.1;AES256
  25.     34623663383737353236626534333835666435663661613461386236643934303434303132333730
  26.     3263343630363063386532386637633831653330316566340a643161346138326532663737316663
  27.     62636264333737623636303438376262373864393736656131656637633766656135393861666538
  28.     3137376331373138630a313133356165303265653230393530366132373533623765373332653439
  29.     63656163336331393864303465333736396565303162393265343930373366336164356632303031
  30.     3537623230386430653432623965383636653934383533656638
  31.  
  32.  
  33. Dump inventory, including secrets
  34.  
  35.     $ ansible-inventory -i inventory/ --list --yaml --ask-vault-pass
  36.  
  37.     Vault password:
  38.     all:
  39.       children:
  40.         ungrouped:
  41.           hosts:
  42.             srv1.example.org:
  43.               password: password
  44.               username: root
  45.             srv2.example.org:
  46.               password: password
  47.               username: root
  48.             srv3.example.org:
  49.               password: password
  50.               username: root
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement