Add installation for commonly used sotfware
This commit is contained in:
parent
96ca7d370f
commit
81c63724d7
6 changed files with 55 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
- name: Set up development machine
|
||||
hosts: localhost
|
||||
roles:
|
||||
- packages
|
||||
- bin
|
||||
- bash
|
||||
- dircolors
|
||||
|
|
|
@ -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
|
||||
|
|
16
roles/packages/tasks/main.yml
Normal file
16
roles/packages/tasks/main.yml
Normal 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
|
||||
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue