Files @ 3722152897ec
Branch filter:

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

branko
MAR-218: Disable Ansible lints for prefixed role variable names:

- At this point in time, it does not make much sense to introduce
prefixing and breaking every single role invocation.
- Might be worth revisting down the line, although it would require
understanding a bit more clearly if prefixing has any kind of
special logic handling or it's pure guidelines.
---

- 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_tasks: ../handlers/main.yml
  when: "run_handlers | default(False) | bool()"
  tags:
    - handlers