From c58fe872a345454f055f0e21b285024ecb22b7a0 2024-09-06 12:26:15 From: Branko Majic Date: 2024-09-06 12:26:15 Subject: [PATCH] MAR-218: Fix test instance preparation for php_website testing: - Some of the tasks can only be run without errors on the spun up PHP website instance due to (un)availability of ansible_eth0 variable. --- diff --git a/roles/php_website/molecule/default/molecule.yml b/roles/php_website/molecule/default/molecule.yml index 01d27e4a3401d0e071df61e7228a21600caad4ba..d3b83dabed3d366f6b10fab73f20ea5cc0142652 100644 --- a/roles/php_website/molecule/default/molecule.yml +++ b/roles/php_website/molecule/default/molecule.yml @@ -13,6 +13,7 @@ platforms: - name: php-website-bookworm groups: + - php-website - parameters-mandatory - parameters-optional box: debian/bookworm64 diff --git a/roles/php_website/molecule/default/prepare.yml b/roles/php_website/molecule/default/prepare.yml index 1de5e3f8c4bca4e1660e8bdc906fc9495d8afae3..e544931bc0cd9959b4026a7a3bbe5e2748d1a099 100644 --- a/roles/php_website/molecule/default/prepare.yml +++ b/roles/php_website/molecule/default/prepare.yml @@ -52,6 +52,11 @@ update_cache: true changed_when: false +- name: Prepare, test fixtures + hosts: php-website + become: true + tasks: + - name: Set-up /etc/hosts entries ansible.builtin.lineinfile: dest: /etc/hosts