From 5c141b38f71673cc83a4ebcfc66835c6370e4002 Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 28 Sep 2021 01:13:31 +0200 Subject: [PATCH] create variable for build deps --- defaults/main.yml | 5 +++++ tasks/compile_ranger.yml | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index e696e82..0faa23e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -7,3 +7,8 @@ ranger: repo: 'https://github.com/ranger/ranger.git' branch: 'master' download_directory: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads/ranger') }}" + +ranger__build_deps: + - make + - git + - vim diff --git a/tasks/compile_ranger.yml b/tasks/compile_ranger.yml index 3b71bf7..4088e10 100644 --- a/tasks/compile_ranger.yml +++ b/tasks/compile_ranger.yml @@ -8,10 +8,7 @@ - name: install build packages become: true ansible.builtin.package: - name: - - make - - git - - vim + name: "{{ ranger__build_deps }}" state: present - name: Run 'install' target as root