Files @ 9fa438ee34c0
Branch filter:

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

branko
MAR-5: Added another example to role reference for running PHP websites. Allow duplicates of roles php_website and wsgi_website. Use parameter in handler for restarting WSGI website (to have them website-specific). Updated test site to force handler execution in order to avoid being in undefined state.
1
2
3
4
5
6
7
8
9
---

- 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.name }}.cfg"
            mode=640
  with_items: preseed_servers