ansible-machine-setup/roles/dotfiles/tasks/main.yaml

30 lines
646 B
YAML
Raw Permalink Normal View History

2020-05-31 15:27:58 +00:00
---
- name: install required packages
package:
name:
- git
2021-01-28 13:27:05 +00:00
- openssh
2020-05-31 15:27:58 +00:00
state: latest
- name: clone dotfiles
become_user: "{{ account.name }}"
git:
repo: git@github.com:mandlm/dotfiles.git
dest: "{{ dotfiles }}"
accept_hostkey: yes
update: no
2020-11-12 12:24:31 +00:00
- name: ensure user/bin exists
become_user: "{{ account.name }}"
file:
path: "/home/{{ account.name }}/bin"
state: directory
mode: "0744"
2020-05-31 15:27:58 +00:00
2020-11-12 12:24:31 +00:00
- name: install bin scripts
become_user: "{{ account.name }}"
shell:
chdir: "{{ dotfiles }}/bin"
cmd: ./install.sh
creates: "{{ account.home }}/bin/wiki-sync"