From c3e234639734a830c6df52b7766ae44fe285f03b Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 25 May 2021 18:25:26 +0200 Subject: [PATCH] install optional pkgs --- tasks/main.yml | 6 ++++++ vars/main.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 9628250..588e342 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -33,3 +33,9 @@ - name: optional install keychain ansible.builtin.include_tasks: keychain.yml when: base__install_keychain | bool + +- name: install optional packages + become: true + ansible.builtin.package: + name: "{{ base__extra_packages }}" + state: present diff --git a/vars/main.yml b/vars/main.yml index aa533d6..bc76add 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -61,5 +61,5 @@ base__linux_packages: - bzip2 - jq -playbook_version_number: 9011 +playbook_version_number: 9012 playbook_version_path: 'base-packages_roles-ansible_github.version'