Skip to content
Snippets Groups Projects
Unverified Commit 252811ed authored by Jens Heidbüchel's avatar Jens Heidbüchel
Browse files

Refactor generic stuff

parent 2c66c7c9
No related branches found
No related tags found
No related merge requests found
####################### ###############
Install new OSX machine Install Desktop
####################### ###############
First run First run
========= =========
......
--- ---
- hosts: localhost - name: Setup desktop
hosts: localhost
tasks: tasks:
- name: Confgure Mac - name: Configure Mac
include_tasks: osx.yml include_tasks: osx.yml
when: "ansible_os_family == 'Darwin'" when: "ansible_os_family == 'Darwin'"
- name: Do generic tasks
include_tasks: generic.yml
...@@ -18,33 +18,3 @@ ...@@ -18,33 +18,3 @@
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: "{{ homebrew_cask_packages }}" with_items: "{{ homebrew_cask_packages }}"
- name: Create vim directory structure
file:
path: "{{ item }}"
state: directory
with_items: "{{ vim_dirs }}"
- name: Install vim plugins
git:
repo: "https://github.com/{{ item }}"
dest: "{{ vim_plugin_target }}{{ item.split('/')[1] }}"
with_items: "{{ vim_plugins }}"
- name: Get dot files
git:
repo: https://github.com/forkedjensh/dotfiles
dest: ~/dotfiles/
- name: Find dot files
find:
paths: ~/dotfiles/
pattern: _*
register: dotfiles
- name: Link dot files
file:
src: "{{ item.path }}"
dest: "{{ item.path | regex_replace('dotfiles/_', '.') }}"
state: link
with_items: "{{ dotfiles.files }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment