Start using Ansible for config management
This commit is contained in:
parent
561ea3bc1a
commit
a7e3c46e4e
27
main.yaml
Normal file
27
main.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Clone git private config repository
|
||||||
|
git:
|
||||||
|
repo: git@code.infektor.net:benie/config.git
|
||||||
|
dest: ~/.config/private
|
||||||
|
- name: Install git homebrew packages
|
||||||
|
when: ansible_os_family == "Darwin"
|
||||||
|
homebrew:
|
||||||
|
name: gpg
|
||||||
|
state: latest
|
||||||
|
- name: Intall git pip packages
|
||||||
|
pip:
|
||||||
|
name: git+ssh://git@github.com/kbenzie/git-issue.git
|
||||||
|
extra_args: --user
|
||||||
|
state: latest
|
||||||
|
- name: Create git symbolic links
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: '{{item.src}}'
|
||||||
|
dest: '{{item.dest}}'
|
||||||
|
with_items:
|
||||||
|
- src: ~/.config/git/config
|
||||||
|
dest: ~/.gitconfig
|
||||||
|
- src: ~/.config/git/_git-changes
|
||||||
|
dest: ~/.local/share/zsh/site-functions/_git-changes
|
Loading…
x
Reference in New Issue
Block a user