17
roles/setup/tasks/config/noahk.yml
Normal file
17
roles/setup/tasks/config/noahk.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Setup dotfiles repo
|
||||
when: inventory_hostname in groups['localhost']
|
||||
ansible.builtin.git:
|
||||
repo: https://git.noahknegt.com/noah.knegt/dotfiles.git # noqa: latest
|
||||
depth: 1
|
||||
dest: /home/noahk/dotfiles
|
||||
accept_hostkey: true
|
||||
|
||||
- name: Use stow to set up config data
|
||||
when: inventory_hostname in groups['localhost']
|
||||
become: true
|
||||
become_user: noahk
|
||||
become_method: ansible.builtin.su
|
||||
ansible.builtin.command: cd /home/noahk/dotfiles && stow -t ~ .
|
||||
register: stow_output
|
||||
changed_when: stow_output.rc != 0
|
Reference in New Issue
Block a user