Files @ b757d690af42
Branch filter:

Location: majic-ansible-roles/roles/preseed/tasks/main.yml

branko
MAR-75: Implemented support for specifying additional environment variables for the wsgi_website role. Environment is set-up for both the systemd service and for application admin user. Updated testsite implementation to use it for sample WSGI website.
---

- name: Create directory for storing preseed configurations
  file: path="{{ preseed_directory }}" mode=750 state=directory

- name: Create preseed configuration file
  template: src="preseed-jessie.cfg.j2" dest="{{ preseed_directory }}/{{ item }}.cfg"
            mode=640
  with_items: "{{ groups['all'] }}"
  when: item != "localhost"

- name: Explicitly run all handlers
  include: ../handlers/main.yml
  when: "handlers | default(False) | bool() == True"
  tags:
    - handlers