diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70e6297..d204d7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,7 @@ jobs: matrix: include: - distro: debian10 + ansible-version: '>=9, <10' - distro: debian11 - distro: debian12 - distro: ubuntu1804 diff --git a/tasks/main.yml b/tasks/main.yml index e50749c..4298c64 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,7 +37,7 @@ dest: "{{ postfix_mailname_file }}" owner: root group: root - mode: 0644 + mode: '0644' notify: restart postfix tags: - configuration @@ -50,7 +50,7 @@ dest: "{{ postfix_main_cf }}" owner: root group: root - mode: 0644 + mode: '0644' notify: restart postfix tags: - configuration @@ -63,7 +63,7 @@ dest: "{{ postfix_sasl_passwd_file }}" owner: root group: root - mode: 0600 + mode: '0600' when: - postfix_relayhost | length - postfix_sasl_auth_enable | bool @@ -82,7 +82,7 @@ dest: "{{ postfix_aliases_file }}" owner: root group: root - mode: 0644 + mode: '0644' notify: - new aliases - restart postfix @@ -112,7 +112,7 @@ line: '{{ item.virtual }} {{ item.alias }}' owner: root group: root - mode: 0644 + mode: '0644' create: true state: present with_items: "{{ postfix_virtual_aliases }}" @@ -131,7 +131,7 @@ line: '{{ item.sender }} {{ item.rewrite }}' owner: root group: root - mode: 0644 + mode: '0644' create: true state: present with_items: "{{ postfix_sender_canonical_maps }}" @@ -150,7 +150,7 @@ line: '{{ item.recipient }} {{ item.rewrite }}' owner: root group: root - mode: 0644 + mode: '0644' create: true state: present with_items: "{{ postfix_recipient_canonical_maps }}" @@ -169,7 +169,7 @@ line: '{{ item.pattern }} {{ item.result }}' owner: root group: root - mode: 0644 + mode: '0644' create: true state: present with_items: "{{ postfix_transport_maps }}" @@ -188,7 +188,7 @@ line: '{{ item.pattern }} {{ item.result }}' owner: root group: root - mode: 0644 + mode: '0644' create: true state: present with_items: "{{ postfix_sender_dependent_relayhost_maps }}" @@ -207,7 +207,7 @@ line: '{{ item.pattern }} {{ item.result }}' owner: root group: root - mode: 0644 + mode: '0644' create: true state: present with_items: "{{ postfix_smtp_generic_maps }}" @@ -225,7 +225,7 @@ dest: "{{ postfix_header_checks_file }}" owner: root group: root - mode: 0644 + mode: '0644' notify: - restart postfix tags: diff --git a/tests/test.yml b/tests/test.yml index be2b897..6ca55c7 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,6 +1,7 @@ # test file --- -- hosts: localhost +- name: converge + hosts: localhost connection: local become: true roles: diff --git a/tests/vagrant.yml b/tests/vagrant.yml index afdaebc..c51aabf 100644 --- a/tests/vagrant.yml +++ b/tests/vagrant.yml @@ -1,6 +1,7 @@ # test file --- -- hosts: all +- name: converge + hosts: all remote_user: vagrant become: true roles: