Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Lookup shell config files
- stat:
- path: "{{ item }}"
- with_items:
- - "~/.bashrc"
- - "~/.zshrc"
- - "~/.config/fish/config.fish"
- - "~/.bash_profile"
- register: shell_lookup
- - set_fact:
- shell_configs: "{{ shell_lookup.results | json_query('[?stat.exists].item') | list }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement