You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
471 B

3 months ago
- name: Sync dotfiles
hosts: dev
2 years ago
tasks:
3 months ago
- name: List dotfiles # noqa: risky-shell-pipe
ansible.builtin.shell: ls -A ~/.dotfiles | grep '^\.'
register: ls_dotfiles
changed_when: false
2 years ago
3 months ago
- name: Symlink dotfiles
ansible.builtin.file:
src: ~/.dotfiles/{{ item }}
dest: ~/{{ item }}
state: link
loop: "{{ ls_dotfiles.stdout_lines | difference(['.git', '.gitmodules', '.DS_Store']) }}"
# vim: ft=yaml.ansible