From c40f2194b8442cfc7e3b562df940dadf88479300 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 15 Jul 2019 23:07:17 +0200 Subject: [PATCH] We use vim --- defaults/main.yml | 14 +++++++++++++- tasks/editor.yml | 7 +++++++ tasks/main.yml | 5 ++++- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 tasks/editor.yml diff --git a/defaults/main.yml b/defaults/main.yml index ba856b3..7b5dd6e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,18 @@ --- +# if you are interested in adding extra packages... do it here! packages_extra: [] # - foo # - bar -upgrade_packages_to_latest_version: false + +# do we want the latest package version or just upgrade manually? +upgrade_packages_to_latest_version: true + +# add eth zurich apt source +add_ethz: true + +# we use vim! +editor_is_vim: true + + +# version management submodules_versioncheck: true diff --git a/tasks/editor.yml b/tasks/editor.yml new file mode 100644 index 0000000..8cafd2b --- /dev/null +++ b/tasks/editor.yml @@ -0,0 +1,7 @@ +--- +- name: vim is our editor + become: true + alternatives: + name: editor + path: /usr/bin/vim.basic + when: editor_is_vim | bool diff --git a/tasks/main.yml b/tasks/main.yml index de226cb..fdc1134 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,9 @@ --- - include_tasks: versioncheck.yml - when: submodules_versioncheck|bool + when: submodules_versioncheck | bool + +- include_tasks: editor.yml + when: editor_is_vim | bool - name: Install common base packages [Debian] become: yes