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

47 lines
1.0 KiB
YAML
Raw Normal View History

2020-05-31 10:17:10 +00:00
---
- name: install basic packages
package:
name:
- git
- tmux
- tree
state: latest
- name: clone dotfiles
become_user: "{{ account.name }}"
git:
2020-05-31 10:52:20 +00:00
repo: git@github.com:mandlm/dotfiles.git
dest: "{{ dotfiles }}"
2020-05-31 10:17:10 +00:00
accept_hostkey: yes
update: no
- name: install zsh config
become_user: "{{ account.name }}"
shell:
2020-05-31 10:52:20 +00:00
chdir: "{{ dotfiles }}/zsh"
2020-05-31 10:17:10 +00:00
cmd: ./install.sh
creates: "{{ account.home }}/.zshrc"
- name: install tmux plugin manager
become_user: "{{ account.name }}"
git:
repo: https://github.com/tmux-plugins/tpm.git
dest: "{{ account.home }}/.tmux/plugins/tpm"
accept_hostkey: yes
update: no
- name: install tmux config
become_user: "{{ account.name }}"
shell:
2020-05-31 10:52:20 +00:00
chdir: "{{ dotfiles }}/tmux"
2020-05-31 10:17:10 +00:00
cmd: ./install.sh
creates: "{{ account.home }}/.tmux.conf"
- name: install git config
become_user: "{{ account.name }}"
shell:
2020-05-31 10:52:20 +00:00
chdir: "{{ dotfiles }}/git"
2020-05-31 10:17:10 +00:00
cmd: ./install.sh
creates: "{{ account.home }}/.gitconfig"