Files @ 2006d7eebe25
Branch filter:

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

branko
MAR-22: Initial test implementation for role 'common':

- Added Molecule configuration covering all platforms with two hosts for testing
mandatory and optional parameters, as well as helper machine.
- Created test playbook for deploying necessary roles to servers with specific
configuration settings.
- Added sample data used by the test playbook.
- Added stock test file.
---

- 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