summaryrefslogtreecommitdiff
path: root/roles/postfix/simple
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-11-22 21:43:47 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-11-22 21:43:47 +0100
commitf97ec1816c41b9a15a37f69ef7a5a16a1c01627e (patch)
treec364805be8255ed0a5312fece9fb9d00fd333552 /roles/postfix/simple
parentone more minor fix (diff)
rename postfix/simple to postfix/base
Diffstat (limited to 'roles/postfix/simple')
-rw-r--r--roles/postfix/simple/defaults/main.yml18
-rw-r--r--roles/postfix/simple/handlers/main.yml5
-rw-r--r--roles/postfix/simple/tasks/main.yml22
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