From c3ac792e73b8b31d94bebf5d5719ffefed1ea50f Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sat, 25 Aug 2018 10:42:00 +0200 Subject: [PATCH] New sever: Bilimbi --- Bilimbi.yml | 21 +++++++++++++++++++++ tasks/deb_CLI_packages.yml | 35 +++++++++++++++++++++++++++++++++++ vars/Bilimibi.yml | 6 ++++++ 3 files changed, 62 insertions(+) create mode 100644 Bilimbi.yml create mode 100644 tasks/deb_CLI_packages.yml create mode 100644 vars/Bilimibi.yml diff --git a/Bilimbi.yml b/Bilimbi.yml new file mode 100644 index 0000000..0dd53f2 --- /dev/null +++ b/Bilimbi.yml @@ -0,0 +1,21 @@ +--- +- hosts: localhost + connection: local + + vars_files: + - vars/common.yml + - vars/Bilimbi.yml + + tasks: + - include: tasks/deb_CLI_packages.yml + - include: tasks/zsh.yml + - include: tasks/users.yml + - include: tasks/sudo.yml + - include: tasks/ssh.yml + - include: tasks/dotfiles.yml + + handlers: + - name: restart sshd + service: + name: sshd + state: restarted diff --git a/tasks/deb_CLI_packages.yml b/tasks/deb_CLI_packages.yml new file mode 100644 index 0000000..70ff270 --- /dev/null +++ b/tasks/deb_CLI_packages.yml @@ -0,0 +1,35 @@ +--- +- name: Update and upgrade all packages + apt: + update_cache: yes + upgrade: full + +- name: Install base CLI packages + apt: + name: "{{ item }}" + state: present + with_items: + - wget + - cronie + - zsh + - vim + - tmux + - ruby + - git + - openssh + - sshfs + - htop + - ntop + - iotop + - glances + - ranger + +- name: Install extra CLI packages + apt: + name: "{{ item }}" + state: present + with_items: + - moc + - newsboat + - pass + when: not minimal diff --git a/vars/Bilimibi.yml b/vars/Bilimibi.yml new file mode 100644 index 0000000..11cf31f --- /dev/null +++ b/vars/Bilimibi.yml @@ -0,0 +1,6 @@ +--- + +deploy_public_key: files/id_ed25519_Embrevade.pub + +minimal: true +