Skip to content
Snippets Groups Projects
Select Git revision
  • f23c040026873194109705c503082ffcb655549d
  • tardis default
  • online-lip-2020
  • ss18
  • ws18
  • master protected
  • ws17
  • ss17
  • ws16
  • ss16
  • ws15 protected
  • ss15 protected
  • ws14 protected
  • buildhauer protected
  • ss14 protected
15 results

linuxparty.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    main.yml 1.07 KiB
    ---
    
    - name: ensure all required postfix packages are installed
      apt: name={{ item }} state=present
      with_items: 
        - postfix
        - postfix-pcre
        - postfix-cdb
        - memcached
      tags: 
        - postfix
        - mail
    
    - name: ensure not templated config is present
      copy: src=files/{{ item }} dest=/etc/postfix/
      with_items:
        - login_maps.pcre
        - master.cf
        - sender_login_map.hash
        - postscreen_whitelist
      notify: 
        - restart postfix
      tags:
        - postfix
        - mail
    
    - name: ensure templated config is present
      template: src=templates/{{ item }}.j2 dest=/etc/postfix/{{ item }}
      with_items:
        - main.cf
        - postscreen_cache
      notify: 
        - restart postfix
      tags:
        - postfix
        - mail
        
    - name: ensure system alias database is present
      template: src=templates/aliases.j2 dest=/etc/aliases
      notify:
        - postmap system
      tags:
        - postfix
        - mail
    
    - name: ensure virtual alias database is present
      template: src=templates/v_aliases.j2 dest=/etc/postfix/virtual
      notify:
        - postmap virtual
      tags:
        - postfix
        - mail
    
    - meta: flush_handlers