Start using Ansible for config management
This commit is contained in:
parent
781fff16d6
commit
2473202cd8
@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
- location: ~/.config/git
|
|
||||||
- symlink:
|
|
||||||
- {src: config, dst: ~/.gitconfig}
|
|
||||||
- {src: _git-changes, dst: ~/.local/share/zsh/site-functions/_git-changes}
|
|
||||||
- repo:
|
|
||||||
- git@code.infektor.net:benie/config.git
|
|
||||||
- pip:
|
|
||||||
- git+ssh://git@github.com/kbenzie/git-issue.git
|
|
28
main.yaml
Normal file
28
main.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Clone git private config repository
|
||||||
|
git:
|
||||||
|
repo: git@code.infektor.net:benie/config.git
|
||||||
|
dest: ~/.config/private
|
||||||
|
version: master
|
||||||
|
- 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