diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/common-LDAP/files/etc/ldap/schema/fripost.ldif (renamed from roles/common/files/etc/ldap/schema/fripost.ldif) | 0 | ||||
-rw-r--r-- | roles/common-LDAP/files/var/lib/ldap/fripost/DB_CONFIG (renamed from roles/common/files/var/lib/ldap/fripost/DB_CONFIG) | 0 | ||||
-rw-r--r-- | roles/common-LDAP/handlers/main.yml | 2 | ||||
-rw-r--r-- | roles/common-LDAP/tasks/main.yml (renamed from roles/common/tasks/ldap.yml) | 0 | ||||
-rw-r--r-- | roles/common-LDAP/templates/etc/ldap/database.ldif.j2 (renamed from roles/common/templates/etc/ldap/database.ldif.j2) | 0 | ||||
-rw-r--r-- | roles/common-SQL/tasks/main.yml (renamed from roles/common/tasks/sql.yml) | 0 | ||||
-rw-r--r-- | roles/common/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/common/tasks/main.yml | 12 |
8 files changed, 2 insertions, 15 deletions
diff --git a/roles/common/files/etc/ldap/schema/fripost.ldif b/roles/common-LDAP/files/etc/ldap/schema/fripost.ldif index 851988e..851988e 100644 --- a/roles/common/files/etc/ldap/schema/fripost.ldif +++ b/roles/common-LDAP/files/etc/ldap/schema/fripost.ldif diff --git a/roles/common/files/var/lib/ldap/fripost/DB_CONFIG b/roles/common-LDAP/files/var/lib/ldap/fripost/DB_CONFIG index 0bd4e58..0bd4e58 100644 --- a/roles/common/files/var/lib/ldap/fripost/DB_CONFIG +++ b/roles/common-LDAP/files/var/lib/ldap/fripost/DB_CONFIG diff --git a/roles/common-LDAP/handlers/main.yml b/roles/common-LDAP/handlers/main.yml new file mode 100644 index 0000000..6972af2 --- /dev/null +++ b/roles/common-LDAP/handlers/main.yml @@ -0,0 +1,2 @@ +- name: Restart slapd + service: name=slapd state=restarted diff --git a/roles/common/tasks/ldap.yml b/roles/common-LDAP/tasks/main.yml index cb1e835..cb1e835 100644 --- a/roles/common/tasks/ldap.yml +++ b/roles/common-LDAP/tasks/main.yml diff --git a/roles/common/templates/etc/ldap/database.ldif.j2 b/roles/common-LDAP/templates/etc/ldap/database.ldif.j2 index 19fcdd0..19fcdd0 100644 --- a/roles/common/templates/etc/ldap/database.ldif.j2 +++ b/roles/common-LDAP/templates/etc/ldap/database.ldif.j2 diff --git a/roles/common/tasks/sql.yml b/roles/common-SQL/tasks/main.yml index e32c863..e32c863 100644 --- a/roles/common/tasks/sql.yml +++ b/roles/common-SQL/tasks/main.yml diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml index 51b19f7..54643ed 100644 --- a/roles/common/handlers/main.yml +++ b/roles/common/handlers/main.yml @@ -18,23 +18,20 @@ service: name=fail2ban state=restarted - name: Missing IPSec certificate fail: msg="strongswan IPsec is lacking public or private keys on '{{ ansible_fqdn }}'." - name: Restart IPSec service: name=ipsec state=restarted - name: Reload networking # /etc/init.d/networking doesn't answer the status command; but since # it should be "up" whenever ansible has access to the machine, we use # pattern=init as a dummy assumption. service: name=networking pattern=init state=reloaded # TODO: should be in a separate file, since it's used by other roles - name: Restart Postfix service: name=postfix state=restarted - name: Reload Postfix service: name=postfix state=reloaded - -- name: Restart slapd - service: name=slapd state=restarted diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index ed84cb5..355b2df 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,23 +1,11 @@ --- - include: sysctl.yml tags=sysctl - include: hosts.yml - include: apt.yml tags=apt - include: firewall.yml tags=firewall,iptables - include: samhain.yml tags=samhain - include: rkhunter.yml tags=rkhunter - include: fail2ban.yml tags=fail2ban - include: ipsec.yml tags=strongswan,ipsec - include: logging.yml tags=logging - include: mail.yml tags=mail,postfix -- include: sql.yml tags=mysql,sql - # XXX: the conditional here is a bit dirty, because it clutters the - # output with 'skipping' notices. - when: "'MDA' in group_names or - 'webmail' in group_names or - 'backup' in group_names" -- include: ldap.yml tags=slapd,ldap - when: "'MDA' in group_names or - 'MSA' in group_names or - 'lists' in group_names or - 'LDAP-producer' in group_names or - 'MX' in group_names" |