Files
@ 8902cd5aa66b
Branch filter:
Location: majic-ansible-roles/roles/backup_server/molecule/default/prepare.yml - annotation
8902cd5aa66b
708 B
text/x-yaml
MAR-218: Improve mail server role test reliability:
- Introduce sleep after sending out mails in order to ensure that
Postfix has had enough time to process the messages.
- Relevant only for tests that take care of parsing the mail log.
- Solves the false negatives caused by timing issues.
- It might be a good idea down the line to implement some kind of
retry/backoff mechanism instead.
- Introduce sleep after sending out mails in order to ensure that
Postfix has had enough time to process the messages.
- Relevant only for tests that take care of parsing the mail log.
- Solves the false negatives caused by timing issues.
- It might be a good idea down the line to implement some kind of
retry/backoff mechanism instead.
ef201fa5ec5f ef201fa5ec5f 694893c0259a 694893c0259a 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 c10934519e18 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 694893c0259a 694893c0259a 55d6b2e2f4f3 694893c0259a ef201fa5ec5f ef201fa5ec5f ef201fa5ec5f c10934519e18 55d6b2e2f4f3 ef201fa5ec5f ef201fa5ec5f c10934519e18 55d6b2e2f4f3 | ---
- name: Prepare, test fixtures
hosts: localhost
connection: local
tasks:
- name: Fix SSH client file permissions locally, otherwise we get error from SSH
ansible.builtin.file:
path: "{{ item }}"
mode: g=,o=
with_items:
- tests/data/ssh/client1
- tests/data/ssh/client2
- name: Prepare
hosts: all
become: true
gather_facts: false
tasks:
- name: Install python for Ansible
ansible.builtin.raw: test -e /usr/bin/python3 || (apt -y update && apt install -y python3-minimal)
changed_when: false
- name: Update all caches to avoid errors due to missing remote archives
ansible.builtin.apt:
update_cache: true
|