Move main.yaml to tasks.yaml

This commit is contained in:
Kenneth Benzie 2021-11-19 22:07:35 +00:00
parent e2218750fa
commit 2615350bb8
2 changed files with 29 additions and 28 deletions

View File

@ -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
View 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