Add installation for commonly used sotfware

This commit is contained in:
Fernando Schauenburg 2019-11-15 23:44:15 +00:00
parent 96ca7d370f
commit 81c63724d7
6 changed files with 55 additions and 0 deletions

View file

@ -2,6 +2,7 @@
- name: Set up development machine
hosts: localhost
roles:
- packages
- bin
- bash
- dircolors

View file

@ -1,4 +1,15 @@
---
- name: Install git (Debian)
when: ansible_os_family == "Debian"
become: yes
apt: name={{ item }} state=latest update_cache=yes
loop: [git, git-crypt]
- name: Install git (macOS)
when: ansible_os_family == "Darwin"
homebrew: name={{ item }} state=latest
loop: [git, git-crypt]
- name: Create the git config directory
file:
path: ~/.config/git

View file

@ -0,0 +1,16 @@
---
- name: Install common packages (Debian)
when: ansible_os_family == "Debian"
become: yes
apt: name={{ item }} state=latest update_cache=yes
loop:
- curl
- tree
- name: Install common packages (macOS)
when: ansible_os_family == "Darwin"
homebrew: name={{ item }} state=latest
loop:
- curl
- tree

View file

@ -1,4 +1,13 @@
---
- name: Install python3 (Debian)
when: ansible_os_family == "Debian"
become: yes
apt: name=python3 state=latest update_cache=yes
- name: Install python3 (macOS)
when: ansible_os_family == "Darwin"
homebrew: name=python3 state=latest
- name: Create the python config and cache directories
file:
path: "~/.{{ item }}/python"

View file

@ -1,4 +1,13 @@
---
- name: Install tmux (Debian)
when: ansible_os_family == "Debian"
become: yes
apt: name=tmux state=latest update_cache=yes
- name: Install tmux (macOS)
when: ansible_os_family == "Darwin"
homebrew: name=tmux state=latest
- name: Create the tmux config directory
file:
path: ~/.config/tmux

View file

@ -1,4 +1,13 @@
---
- name: Install vim (Debian)
when: ansible_os_family == "Debian"
become: yes
apt: name=vim state=latest update_cache=yes
- name: Install vim (macOS)
when: ansible_os_family == "Darwin"
homebrew: name=vim state=latest
- name: Create the vim cache and config directories
file:
path: "{{ item }}"