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
18 lines
471 B
- name: Sync dotfiles
|
|
hosts: dev
|
|
tasks:
|
|
|
|
- name: List dotfiles # noqa: risky-shell-pipe
|
|
ansible.builtin.shell: ls -A ~/.dotfiles | grep '^\.'
|
|
register: ls_dotfiles
|
|
changed_when: false
|
|
|
|
- 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
|