chore: fix syntax for ansible-lint

This commit is contained in:
Adrien Waksberg 2023-06-29 16:19:02 +02:00
parent e0ed5a9445
commit 4379438163
4 changed files with 21 additions and 21 deletions

View file

@ -1,22 +1,22 @@
--- ---
postfix_hostname: '{{ ansible_fqdn }}' postfix_hostname: "{{ ansible_fqdn }}"
postfix_origin: '$myhostname' postfix_origin: "$myhostname"
postfix_config: {} postfix_config: {}
postfix_default_config: postfix_default_config:
smtpd_banner: $myhostname ESMTP $mail_name (Debian/GNU) smtpd_banner: $myhostname ESMTP $mail_name (Debian/GNU)
biff: 'no' biff: "no"
append_dot_mydomain: 'no' append_dot_mydomain: "no"
readme_directory: 'no' readme_directory: "no"
compatibility_level: 2 compatibility_level: 2
myhostname: '{{ ansible_fqdn }}' myhostname: "{{ ansible_fqdn }}"
myorigin: $myhostname myorigin: $myhostname
mydestination: $myhostname, localhost mydestination: $myhostname, localhost
default_transport: smtp default_transport: smtp
mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit: '0' mailbox_size_limit: "0"
recipient_delimiter: '+' recipient_delimiter: "+"
inet_interfaces: localhost inet_interfaces: localhost
inet_protocols: all inet_protocols: all
postfix_full_config: '{{ postfix_default_config|combine(postfix_config) }}' postfix_full_config: "{{ postfix_default_config | combine(postfix_config) }}"
postfix_transports: {} postfix_transports: {}
postfix_aliases: {} postfix_aliases: {}

View file

@ -1,11 +1,11 @@
--- ---
- name: reload postfix - name: Reload postfix
ansible.builtin.service: ansible.builtin.service:
name: postfix name: postfix
state: reloaded state: reloaded
- name: map transport - name: Map transport # noqa no-changed-when
ansible.builtin.command: postmap /etc/postfix/transport ansible.builtin.command: postmap /etc/postfix/transport
- name: map aliases - name: Map aliases # noqa no-changed-when
ansible.builtin.command: postalias /etc/postfix/aliases ansible.builtin.command: postalias /etc/postfix/aliases

View file

@ -6,7 +6,7 @@ galaxy_info:
company: Adrien Waksberg company: Adrien Waksberg
description: Install and configure a simple mta with postfix description: Install and configure a simple mta with postfix
license: Apache2 license: Apache2
min_ansible_version: 2.9 min_ansible_version: "2.9"
platforms: platforms:
- name: Debian - name: Debian

View file

@ -1,13 +1,13 @@
--- ---
- name: install packages - name: Install packages
ansible.builtin.package: ansible.builtin.package:
name: name:
- postfix - postfix
- bsd-mailx - bsd-mailx
tags: postfix tags: postfix
- name: copy file configuration - name: Copy file configuration
template: ansible.builtin.template:
src: '{{ item }}.j2' src: '{{ item }}.j2'
dest: '/etc/postfix/{{ item }}' dest: '/etc/postfix/{{ item }}'
owner: root owner: root
@ -18,14 +18,14 @@
- aliases - aliases
- transport - transport
notify: notify:
- reload postfix - Reload postfix
- map aliases - Map aliases
- map transport - Map transport
tags: postfix tags: postfix
- name: enable and start service - name: Enable and start service
ansible.builtin.service: ansible.builtin.service:
name: postfix name: postfix
enabled: yes enabled: true
state: started state: started
tags: postfix tags: postfix