From f97ec1816c41b9a15a37f69ef7a5a16a1c01627e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 22 Nov 2022 21:43:47 +0100 Subject: rename postfix/simple to postfix/base --- roles/postfix/simple/defaults/main.yml | 18 ------------------ roles/postfix/simple/handlers/main.yml | 5 ----- roles/postfix/simple/tasks/main.yml | 22 ---------------------- 3 files changed, 45 deletions(-) delete mode 100644 roles/postfix/simple/defaults/main.yml delete mode 100644 roles/postfix/simple/handlers/main.yml delete mode 100644 roles/postfix/simple/tasks/main.yml (limited to 'roles/postfix/simple') 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 -- cgit v1.2.3