Changeset - 46fe0a9e838f
[Not reviewed]
0 1 0
Branko Majic (branko) - 2 years ago 2023-08-11 00:45:07
branko@majic.rs
MAR-181: Set-up the mail aliases correctly for running mail delivery tests.
1 file changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/wsgi_website/molecule/default/prepare.yml
Show inline comments
 
@@ -95,12 +95,21 @@
 
      with_dict:
 
        myhostname: "myhostname = {{ inventory_hostname }}"
 
        mailbox_command: 'mailbox_command = procmail -a "$EXTENSION"'
 
      notify:
 
        - Restart Postfix
 

	
 
    - name: Direct all mails from the root account to vagrant
 
      lineinfile:
 
        path: /etc/aliases
 
        regexp: "^root"
 
        line: "root: vagrant"
 
        state: present
 
      notify:
 
        - Generate aliases database
 

	
 
    - name: Set-up group for an additional user
 
      group:
 
        name: user
 
        state: present
 

	
 
    - name: Set-up additional user for testing mail delivery
0 comments (0 inline, 0 general)