diff options
Diffstat (limited to 'roles/postfix/simple')
-rw-r--r-- | roles/postfix/simple/defaults/main.yml | 18 | ||||
-rw-r--r-- | roles/postfix/simple/handlers/main.yml | 5 | ||||
-rw-r--r-- | roles/postfix/simple/tasks/main.yml | 22 |
3 files changed, 0 insertions, 45 deletions
diff --git a/roles/postfix/simple/defaults/main.yml b/roles/postfix/simple/defaults/main.yml deleted file mode 100644 index f849b61b..00000000 --- a/roles/postfix/simple/defaults/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -postfix_simple_mydestination: - - "$myhostname" - - "{{ host_name }}.{{ host_domain }}" - - "localhost" - -postfix_simple_mynetworks: - - "127.0.0.0/8" - - "[::ffff:127.0.0.0]/104" - - "[::1]/128" - -postfix_simple_inet_interfaces: - - "loopback-only" - -postfix_simple_inet_protocols: - - "all" - -postfix_simple_relayhost: "" diff --git a/roles/postfix/simple/handlers/main.yml b/roles/postfix/simple/handlers/main.yml deleted file mode 100644 index bea754c9..00000000 --- a/roles/postfix/simple/handlers/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: restart postfix - service: - name: postfix - state: restarted diff --git a/roles/postfix/simple/tasks/main.yml b/roles/postfix/simple/tasks/main.yml deleted file mode 100644 index 4309c3ac..00000000 --- a/roles/postfix/simple/tasks/main.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -- name: install postfix package - apt: - name: postfix - state: present - -- name: basic postfix options - vars: - postfix_options: - mydestination: "{{ postfix_simple_mydestination | join(', ') }}" - mynetworks: "{{ postfix_simple_mynetworks | join(', ') }}" - relayhost: "{{ postfix_simple_relayhost }}" - inet_interfaces: "{{ postfix_simple_inet_interfaces | join(', ') }}" - inet_protocols: "{{ postfix_simple_inet_protocols | join(', ') }}" - loop: "{{ postfix_options | dict2items }}" - loop_control: - label: "{{ item.key }} = {{ item.value }}" - lineinfile: - regexp: "^#?\\s*{{ item.key }}\\s*=" - line: "{{ item.key }} = {{ item.value }}" - dest: /etc/postfix/main.cf - notify: restart postfix |