This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-machine-setup/roles/dotfiles/tasks/main.yaml

30 lines
646 B
YAML

---
- name: install required packages
package:
name:
- git
- openssh
state: latest
- name: clone dotfiles
become_user: "{{ account.name }}"
git:
repo: git@github.com:mandlm/dotfiles.git
dest: "{{ dotfiles }}"
accept_hostkey: yes
update: no
- name: ensure user/bin exists
become_user: "{{ account.name }}"
file:
path: "/home/{{ account.name }}/bin"
state: directory
mode: "0744"
- name: install bin scripts
become_user: "{{ account.name }}"
shell:
chdir: "{{ dotfiles }}/bin"
cmd: ./install.sh
creates: "{{ account.home }}/bin/wiki-sync"