Files @ 0a6b8255f0b7
Branch filter:

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

branko
MAR-131: Use Python 3 in test site wsgihello2 role:

- Switch role to use Python 3 via meta dependency.
- Fix the demo application to work with Python 3.
- Update ipcalc dependency (so it would work with Python 3).
---

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

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

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