Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnuttinck committed Sep 22, 2021
1 parent 2f10db5 commit c37e84a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ Change the variables to your needs.
fd_ldap_admin_dn: cn=CHANGEME
fd_ldap_admin_password: CHANGEME

fd_apache_update_vhosts: false
fd_apache_vhosts_filename: "00-fusiondirectory.conf"
fd_apache_vhosts_template: "00-fusiondirectory.conf.j2"


## Example Playbook

```yaml
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fd_ldap_uri: ldaps://CHANGEME/dc=CHANGEME
fd_ldap_admin_dn: cn=CHANGEME
fd_ldap_admin_password: CHANGEME

# set to true to change apache config
fd_apache_update_vhosts: false
fd_apache_vhosts_filename: "00-fusiondirectory.conf"
# set the path of your template here
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
group: root

- name: Copy apache vhosts configuration.
template:
ansible.builtin.template:
src: "{{ fd_apache_vhosts_template }}"
dest: "/etc/apache2/sites-available/{{ fd_apache_vhosts_filename }}"
owner: root
group: root
mode: 0644
notify: restart apache
when: fd_apache_update_vhosts | bool
when: fd_apache_update_vhosts

0 comments on commit c37e84a

Please sign in to comment.