projects
/
ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add master playbook
[ansible.git]
/
roles
/
postfix
/
tasks
/
main.yml
diff --git
a/roles/postfix/tasks/main.yml
b/roles/postfix/tasks/main.yml
index 69f83178414a92fd75328672bef0e34cd82041d7..07c344e2136204001e407f61dedc8ece1ce926e3 100644
(file)
--- a/
roles/postfix/tasks/main.yml
+++ b/
roles/postfix/tasks/main.yml
@@
-1,10
+1,13
@@
- name: install postfix
apt: name=postfix,bsd-mailx state=latest
- name: install postfix
apt: name=postfix,bsd-mailx state=latest
-- name: install postfix
main.cf
+- name: install postfix
config
register: config_main
template:
register: config_main
template:
- src: templates/main.cf
- dest: /etc/postfix/main.cf
+ src: templates/{{ item }}
+ dest: /etc/postfix/{{ item }}
+ with_items:
+ - main.cf
+ - master.cf
- name: reload postfix
service: name=postfix state=restarted enabled=yes
when: config_main.changed
- name: reload postfix
service: name=postfix state=restarted enabled=yes
when: config_main.changed