add work machine/ dev tools
This commit is contained in:
parent
4ea271dbf0
commit
65aba2e579
|
@ -56,6 +56,12 @@ You can simply run the whole role:
|
||||||
import_role:
|
import_role:
|
||||||
name: common
|
name: common
|
||||||
tasks_from: usersettings
|
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:
|
Or call the different tasks individually:
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
packages:
|
packages:
|
||||||
- git
|
- git
|
||||||
- curl
|
- curl
|
||||||
|
- wget
|
||||||
- zsh
|
- zsh
|
||||||
- vim
|
- vim
|
||||||
- tmux
|
- tmux
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
# Common/Tools: Additional Tools (depending on OS) - Debian Version
|
# Common/Tools: Additional Tools (depending on OS) - Debian Version
|
||||||
|
# (dnsutils includes dig)
|
||||||
|
|
||||||
- name: tools - Install basic utilities
|
- name: tools - Install basic utilities
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -8,8 +9,7 @@
|
||||||
state: present
|
state: present
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- wget
|
|
||||||
- rsync
|
- rsync
|
||||||
|
- dnsutils
|
||||||
- htop
|
- htop
|
||||||
- unzip
|
- unzip
|
||||||
# - dnsutils
|
|
||||||
|
|
|
@ -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
|
- name: tools - Install basic utilities
|
||||||
include_tasks: "{{ item }}"
|
include_tasks: "{{ item }}"
|
||||||
|
|
14
tasks/usertools-Archlinux.yml
Normal file
14
tasks/usertools-Archlinux.yml
Normal 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
|
14
tasks/usertools-Darwin.yml
Normal file
14
tasks/usertools-Darwin.yml
Normal 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
|
15
tasks/usertools-Debian.yml
Normal file
15
tasks/usertools-Debian.yml
Normal 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
8
tasks/usertools.yml
Normal 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"
|
Loading…
Reference in a new issue