add work machine/ dev tools

This commit is contained in:
Jannik Beyerstedt 2019-10-14 08:47:22 +02:00
parent 4ea271dbf0
commit 65aba2e579
8 changed files with 61 additions and 3 deletions

View file

@ -56,6 +56,12 @@ You can simply run the whole role:
import_role:
name: common
tasks_from: usersettings
# just for you main machine
- name: Basics - Install dotfiles
import_role:
name: common
tasks_from: usertools
```
Or call the different tasks individually:

View file

@ -10,6 +10,7 @@
packages:
- git
- curl
- wget
- zsh
- vim
- tmux

View file

@ -1,5 +1,6 @@
---
# Common/Tools: Additional Tools (depending on OS) - Debian Version
# (dnsutils includes dig)
- name: tools - Install basic utilities
become: yes
@ -8,8 +9,7 @@
state: present
vars:
packages:
- wget
- rsync
- dnsutils
- htop
- unzip
# - dnsutils

View file

@ -1,5 +1,5 @@
---
# Common/Tools: Additional Tools (depending on OS)
# Common/Tools: Additional Tools (depending on OS) (rsync; dnsutils, htop, unzip)
- name: tools - Install basic utilities
include_tasks: "{{ item }}"

View file

@ -0,0 +1,14 @@
---
# Common/Usertools: User's Main Machine/ Developer Tools - ArchLinux Version
- name: usertools - Install common main machine utilities
package:
name: "{{ packages }}"
state: present
vars:
packages:
- nmap
- rsync
- icdiff
- iftop
- ansible

View file

@ -0,0 +1,14 @@
---
# Common/Usertools: User's Main Machine/ Developer Tools - macOS Version
- name: usertools - Install common main machine utilities
package:
name: "{{ packages }}"
state: present
vars:
packages:
- nmap
- rsync
- icdiff
- iftop
- ansible

View file

@ -0,0 +1,15 @@
---
# Common/Usertools: User's Main Machine/ Developer Tools - Debian Version
- name: usertools - Install common main machine utilities
become: yes
apt:
name: "{{ packages }}"
state: present
vars:
packages:
- nmap
- rsync
- icdiff
- iftop
- ansible

8
tasks/usertools.yml Normal file
View file

@ -0,0 +1,8 @@
---
# Common/Usertools: User's Main Machine/ Developer Tools (nmap, rsync, icdiff, iftop, ansible)
- name: usertools - Install common main machine utilities
include_tasks: "{{ item }}"
with_first_found:
- "usertools-{{ ansible_distribution }}.yml"
- "usertools-{{ (override_os_family is defined) | ternary(override_os_family,ansible_os_family) }}.yml"