Move main.yaml to tasks.yaml
This commit is contained in:
parent
e2218750fa
commit
2615350bb8
28
main.yaml
28
main.yaml
@ -1,28 +0,0 @@
|
||||
---
|
||||
- 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+https://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
|
29
tasks.yaml
Normal file
29
tasks.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
- name: git clone private config repository
|
||||
git:
|
||||
repo: git@code.infektor.net:benie/config.git
|
||||
dest: ~/.config/private
|
||||
version: master
|
||||
|
||||
- name: git install macOS packages
|
||||
when: ansible_os_family == "Darwin"
|
||||
homebrew:
|
||||
name: gpg
|
||||
state: latest
|
||||
|
||||
- name: git intall pip packages
|
||||
pip:
|
||||
name: git+https://github.com/kbenzie/git-issue.git
|
||||
extra_args: --user
|
||||
state: latest
|
||||
|
||||
- name: git create 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