From 3d474cf159919ea9392d977bbc72a13b25912ee1 Mon Sep 17 00:00:00 2001 From: pwalczysko Date: Thu, 14 Nov 2024 18:27:13 +0000 Subject: [PATCH] Prepare the cron installation with prepare.yml --- molecule/ome-demoserver/molecule.yml | 1 + molecule/prepare.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 molecule/prepare.yml diff --git a/molecule/ome-demoserver/molecule.yml b/molecule/ome-demoserver/molecule.yml index 6569df3c..ec612b45 100644 --- a/molecule/ome-demoserver/molecule.yml +++ b/molecule/ome-demoserver/molecule.yml @@ -25,6 +25,7 @@ platforms: provisioner: name: ansible playbooks: + prepare: ../prepare.yml converge: ../../omero/ome-demoserver.yml options: v: true diff --git a/molecule/prepare.yml b/molecule/prepare.yml new file mode 100644 index 00000000..97571d71 --- /dev/null +++ b/molecule/prepare.yml @@ -0,0 +1,12 @@ +--- +- name: Converge + hosts: all + + # If testing in Docker cron won't be installed + pre_tasks: + - name: Install cron + become: true + ansible.builtin.dnf: + update_cache: true + name: cronie + state: present