Ingen beskrivning
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

fusiondirectory.yml 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. - name: Install FusionDirectory from Debian repository
  2. apt:
  3. name: "{{ packages }}"
  4. state: present
  5. update_cache: yes
  6. vars:
  7. packages:
  8. - fusiondirectory
  9. - fusiondirectory-schema
  10. - expect
  11. tags:
  12. - dependencies
  13. - name: Create the FusionDirectory config file
  14. template:
  15. src=etc_fusiondirectory_fusiondirectory.conf.j2
  16. dest=/etc/fusiondirectory/fusiondirectory.conf.bak
  17. owner=root
  18. group=www-data
  19. mode=0640
  20. - name: Install FusionDirectory LDAP schema
  21. command: fusiondirectory-insert-schema
  22. - name: Disable default Apache FusionDirectory config
  23. command: a2disconf fusiondirectory.conf removes=/etc/apache2/conf-enabled/fusiondirectory.conf
  24. notify: restart apache
  25. - name: Create the Apache LDAP sites config files
  26. template:
  27. src=etc_apache2_sites-available_ldap.j2
  28. dest=/etc/apache2/sites-available/ldap_{{ item.name }}.conf
  29. owner=root
  30. group=root
  31. with_items: "{{ virtual_domains }}"
  32. - name: Enable Apache sites (creates new sites-enabled symlinks)
  33. command: a2ensite ldap_{{ item }}.conf creates=/etc/apache2/sites-enabled/ldap_{{ item }}.conf
  34. notify: restart apache
  35. with_items: "{{ virtual_domains | json_query('[*].name') }}"