Skip to content

Commit

Permalink
Updated for ansible 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
foxycode committed Jul 9, 2019
1 parent c57d4e5 commit f849e1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
- include: opendkim.yml
- include: postfix.yml

- import_tasks: opendkim.yml
- import_tasks: postfix.yml
3 changes: 1 addition & 2 deletions tasks/opendkim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- restart opendkim

- name: opendkim directory present
file: path=/etc/opendkim state=directory
file: path=/etc/opendkim/keys state=directory

- name: opendkim TrustedHosts present
Expand Down Expand Up @@ -48,4 +47,4 @@
file: path=/etc/opendkim/keys/{{ dkim_selector }}.private owner=opendkim group=opendkim

- name: opendkim is running
service: name=opendkim state=running enabled=yes
service: name=opendkim state=started enabled=yes
2 changes: 1 addition & 1 deletion tasks/postfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
- restart postfix

- name: postfix is running
service: name=postfix state=running enabled=yes
service: name=postfix state=started enabled=yes
tags: postfix

0 comments on commit f849e1b

Please sign in to comment.