From ff269f7853dbc255a7be99fa2a66269a3fcb1b7e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 18 Sep 2019 11:23:38 +0200 Subject: [PATCH] add missing epel test dependency --- defaults/main.yml | 2 ++ molecule/ec2-centos-7/playbook.yml | 4 ++++ tasks/setup.yml | 3 ++- vars/main.yml | 3 +++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 defaults/main.yml create mode 100644 vars/main.yml diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..746e83c --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,2 @@ +--- +haveged_packages_extra: [] diff --git a/molecule/ec2-centos-7/playbook.yml b/molecule/ec2-centos-7/playbook.yml index 2566711..155242b 100644 --- a/molecule/ec2-centos-7/playbook.yml +++ b/molecule/ec2-centos-7/playbook.yml @@ -1,5 +1,9 @@ --- - name: Converge hosts: all + vars: + haveged_packages_extra: + - epel-release + roles: - role: xoxys.haveged diff --git a/tasks/setup.yml b/tasks/setup.yml index 28abb9d..5d7c1d5 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -2,8 +2,9 @@ - block: - name: Install haveged entrophy daemon package: - name: haveged + name: "{{ item }}" state: present + loop: "{{ haveged_packages_extra + __haveged_packages }}" - name: Enable and start service service: diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..7bc215e --- /dev/null +++ b/vars/main.yml @@ -0,0 +1,3 @@ +--- +__haveged_packages: + - haveged