Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. - name: Lookup shell config files
  2. stat:
  3. path: "{{ item }}"
  4. with_items:
  5. - "~/.bashrc"
  6. - "~/.zshrc"
  7. - "~/.config/fish/config.fish"
  8. - "~/.bash_profile"
  9. register: shell_lookup
  10. - set_fact:
  11. shell_configs: "{{ shell_lookup.results | json_query('[?stat.exists].item') | list }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement