
- set_fact:
    url_suffix: ""
  when: faf_web_on_root

- set_fact:
    url_suffix: "/faf"
  when: not faf_web_on_root

- name: install faf-webui packages
  package : name={{ item }} state=latest
  with_items: "{{ faf_web_packages }}"

- import_tasks: celery.yml
  when: faf_with_celery

- name: install faf web symboltransfer packages
  package: name={{ item }} state=present
  with_items: "{{ faf_web_symboltransfer_packages }}"
  when: faf_with_symboltransfer

- name: provide /etc/faf/plugins/web.conf
  template: src=etc-faf-plugins-web.conf.j2
    dest=/etc/faf/plugins/web.conf
  notify:
  - restart httpd

- name: put webfaf on root (/) if configured
  template: src=etc-httpd-conf.d-faf-web.conf.j2
    dest=/etc/httpd/conf.d/faf-web.conf
  notify:
  - restart httpd
