Files @ 1bb9f7ac1072
Branch filter:

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

branko
MAR-112: Added alternate SMTP port:

- Updated mail_server role to deploy firewall rules that include redirection
from TCP port 27 to TCP port 25.
- Updated documentation to include references to the additional port.
- Updated tests to cover the new functionality.
---

- 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
  with_items: "{{ groups['all'] }}"
  when: item != "localhost"

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