forked from ISTI-ansible-roles/ansible-roles
Postfix: add some tags to the sasl related tasks.
This commit is contained in:
parent
57c5f89740
commit
55822343bb
|
@ -16,7 +16,7 @@
|
|||
action: configfile path=/etc/default/saslauthd key=START value='yes' syntax=shell
|
||||
|
||||
when: ansible_distribution_file_variety == "Debian"
|
||||
tags: [ 'postfix_relay', 'postfix-relay' ]
|
||||
tags: [ 'postfix_relay', 'postfix-relay', 'postfix_sasl' ]
|
||||
|
||||
- name: Postfix relay, rh specific
|
||||
block:
|
||||
|
@ -33,7 +33,7 @@
|
|||
notify: restart saslauth daemon
|
||||
|
||||
when: ansible_distribution_file_variety == "RedHat"
|
||||
tags: [ 'postfix_relay', 'postfix-relay' ]
|
||||
tags: [ 'postfix_relay', 'postfix-relay', 'postfix_sasl' ]
|
||||
|
||||
|
||||
- name: Postfix relay
|
||||
|
@ -52,5 +52,5 @@
|
|||
- name: Ensure that the saslauthd daemon is started and enabled
|
||||
service: name=saslauthd state=restarted enabled=yes
|
||||
|
||||
tags: [ 'postfix_relay', 'postfix-relay' ]
|
||||
tags: [ 'postfix_relay', 'postfix-relay', 'postfix_sasl' ]
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
template: src=sasl_passwd.j2 dest=/etc/postfix/sasl_passwd owner=root group=root mode=0400
|
||||
when: postfix_use_sasl_auth | bool
|
||||
register: update_sasl_hash
|
||||
tags: postfix-relay
|
||||
tags: [ 'postfix-relay', 'postfix_relay', 'postfix_sasl_client' ]
|
||||
|
||||
- name: Update SASL hash
|
||||
shell: postmap hash:/etc/postfix/sasl_passwd
|
||||
when: update_sasl_hash is changed
|
||||
tags: postfix-relay
|
||||
tags: [ 'postfix-relay', 'postfix_relay', 'postfix_sasl_client' ]
|
||||
|
|
Loading…
Reference in New Issue