From 65aba2e579367d53dcea8d4132ddd1dd98d778cb Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Mon, 14 Oct 2019 08:47:22 +0200 Subject: [PATCH] add work machine/ dev tools --- README.md | 6 ++++++ tasks/essentials-Debian.yml | 1 + tasks/tools-Debian.yml | 4 ++-- tasks/tools.yml | 2 +- tasks/usertools-Archlinux.yml | 14 ++++++++++++++ tasks/usertools-Darwin.yml | 14 ++++++++++++++ tasks/usertools-Debian.yml | 15 +++++++++++++++ tasks/usertools.yml | 8 ++++++++ 8 files changed, 61 insertions(+), 3 deletions(-) create mode 100644 tasks/usertools-Archlinux.yml create mode 100644 tasks/usertools-Darwin.yml create mode 100644 tasks/usertools-Debian.yml create mode 100644 tasks/usertools.yml diff --git a/README.md b/README.md index e9d40e8..3fb54c0 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/tasks/essentials-Debian.yml b/tasks/essentials-Debian.yml index c615c87..33cdaa6 100644 --- a/tasks/essentials-Debian.yml +++ b/tasks/essentials-Debian.yml @@ -10,6 +10,7 @@ packages: - git - curl + - wget - zsh - vim - tmux diff --git a/tasks/tools-Debian.yml b/tasks/tools-Debian.yml index 0359a12..c4afa0f 100644 --- a/tasks/tools-Debian.yml +++ b/tasks/tools-Debian.yml @@ -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 diff --git a/tasks/tools.yml b/tasks/tools.yml index af77562..bd736b0 100644 --- a/tasks/tools.yml +++ b/tasks/tools.yml @@ -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 }}" diff --git a/tasks/usertools-Archlinux.yml b/tasks/usertools-Archlinux.yml new file mode 100644 index 0000000..d775927 --- /dev/null +++ b/tasks/usertools-Archlinux.yml @@ -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 diff --git a/tasks/usertools-Darwin.yml b/tasks/usertools-Darwin.yml new file mode 100644 index 0000000..f982789 --- /dev/null +++ b/tasks/usertools-Darwin.yml @@ -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 diff --git a/tasks/usertools-Debian.yml b/tasks/usertools-Debian.yml new file mode 100644 index 0000000..7e9ecb2 --- /dev/null +++ b/tasks/usertools-Debian.yml @@ -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 diff --git a/tasks/usertools.yml b/tasks/usertools.yml new file mode 100644 index 0000000..e04e6e8 --- /dev/null +++ b/tasks/usertools.yml @@ -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"