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