fix: don't overwrite SSH configuration if Chezmoi provides one
This commit is contained in:
parent
42557f201c
commit
8c240c3478
1 changed files with 5 additions and 0 deletions
|
@ -597,7 +597,12 @@
|
||||||
dest: /home/vagrant/.local/bin/{{ item.path | basename }}
|
dest: /home/vagrant/.local/bin/{{ item.path | basename }}
|
||||||
|
|
||||||
# Configure SSH for the vagrant user
|
# Configure SSH for the vagrant user
|
||||||
|
- name: Check for a Chezmoi-provided SSH configuration
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: /home/vagrant/.ssh/config
|
||||||
|
register: chezmoi_ssh_config
|
||||||
- name: Configure SSH for the vagrant user
|
- name: Configure SSH for the vagrant user
|
||||||
|
when: not chezmoi_ssh_config.stat.exist
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: files/ssh_config
|
src: files/ssh_config
|
||||||
dest: /home/vagrant/.ssh/config
|
dest: /home/vagrant/.ssh/config
|
||||||
|
|
Loading…
Add table
Reference in a new issue