Files @ 4f29bd1aa05b
Branch filter:

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

branko
MAR-181: Drop support for Debian 9 Stretch from the xmpp_server role:

- Switch to using IPs from VirtualBox default allowed host-only
network subnets.
- Drop Stretch-specific workarounds, code, and tests.
---

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

- name: Create preseed configuration file
  template:
    src: "preseed.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: "run_handlers | default(False) | bool()"
  tags:
    - handlers