blob: 4b11e3c554e18fdd7660da3aef2e9b733e70e9b1 (
plain) (
tree)
|
|
---
- name: install yadm
ansible.builtin.package:
name: yadm
state: present
- name: clone repository
ansible.builtin.shell: yes n | yadm clone "{{ dotfiles_repo_url }}"
register: dotfiles_clone_result
changed_when:
- dotfiles_clone_result.rc != 0
- "'Git repo already exists' not in dotfiles_clone_result.stderr"
failed_when:
- dotfiles_clone_result.rc != 0
- "'Git repo already exists' not in dotfiles_clone_result.stderr"
- name: check that yadm bootstrap script exists
ansible.builtin.stat:
path: "/home/{{ dotfiles_workstation_user }}/.config/yadm/bootstrap"
register: dotfiles_bootstrap_result
- name: execute yadm bootstrap
ansible.builtin.command: yadm bootstrap
when:
- dotfiles_bootstrap_result.stat.exists
- dotfiles_bootstrap_result.stat.executable
|