Changeset - c58fe872a345
[Not reviewed]
0 2 0
Branko Majic (branko) - 13 days ago 2024-09-06 12:26:15
branko@majic.rs
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.
2 files changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/php_website/molecule/default/molecule.yml
Show inline comments
 
@@ -10,12 +10,13 @@ driver:
 
    name: virtualbox
 

	
 
platforms:
 

	
 
  - name: php-website-bookworm
 
    groups:
 
      - php-website
 
      - parameters-mandatory
 
      - parameters-optional
 
    box: debian/bookworm64
 
    memory: 512
 
    cpus: 1
 
    provider_raw_config_args:
roles/php_website/molecule/default/prepare.yml
Show inline comments
 
@@ -49,12 +49,17 @@
 

	
 
    - name: Update all caches to avoid errors due to missing remote archives
 
      ansible.builtin.apt:
 
        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
 
        line: "{{ ansible_eth0.ipv4.address }} parameters-mandatory parameters-optional.local php-website"
 

	
 
    - name: Install curl for testing redirects and webpage content
0 comments (0 inline, 0 general)