Files @ 1f535da3e694
Branch filter:

Location: majic-ansible-roles/roles/mail_forwarder/molecule/default/playbook.yml

branko
MAR-129: Updated backup_client tests to use variables from group_vars.
---

- hosts: parameters-mandatory
  become: yes
  roles:
    - role: mail_forwarder

      # Global common parameters.
      tls_certificate_dir: tests/data/x509/

- hosts: parameters-optional
  become: yes
  roles:
    - role: mail_forwarder
      local_mail_aliases:
        root: "root testuser"
      smtp_from_relay_allowed: True
      smtp_relay_host: mail-server
      smtp_relay_host_port: 27
      smtp_relay_truststore: "{{ lookup('file', 'tests/data/x509/ca.cert.pem') }}"

      # common
      ca_certificates:
        testca: "{{ lookup('file', 'tests/data/x509/ca.cert.pem') }}"

- hosts: parameters-no-incoming
  become: yes
  roles:
    - role: mail_forwarder
      smtp_relay_host: mail-server
      smtp_from_relay_allowed: False
      smtp_relay_truststore: "{{ lookup('file', 'tests/data/x509/ca.cert.pem') }}"

      # common
      ca_certificates:
        testca: "{{ lookup('file', 'tests/data/x509/ca.cert.pem') }}"