diff --git a/CHANGELOG.md b/CHANGELOG.md index 9706638..5ebcce7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,15 @@ This project adheres to [Semantic Versioning](http://semver.org/). Which is based on [Keep A Changelog](http://keepachangelog.com/) ## [Unreleased] + +### Added + - feat: add bsd-mailx package -## [v1.0.0] - 2019-03-07 +### Changed + +- chore: use FQCN for module name + +## v1.0.0 - 2019-03-07 + - first version diff --git a/handlers/main.yml b/handlers/main.yml index b1b6f82..ce984dc 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,5 +1,5 @@ --- - name: reload postfix - systemd: + ansible.builtin.service: name: postfix state: reloaded diff --git a/tasks/main.yml b/tasks/main.yml index 58aaa6d..27f45bc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,15 +1,13 @@ --- - name: install packages - apt: - name: '{{ packages }}' - vars: - packages: + ansible.builtin.package: + name: - postfix - bsd-mailx tags: postfix - name: copy file configuration - template: + ansible.builtin.template: src: main.cf.j2 dest: /etc/postfix/main.cf owner: root @@ -19,7 +17,7 @@ tags: postfix - name: enable and start service - systemd: + ansible.builtin.service: name: postfix enabled: yes state: started