Browse Source

custom modules

master
parent
commit
fed7df0e76
3 changed files with 17 additions and 0 deletions
  1. +3
    -0
      defaults/main.yml
  2. +6
    -0
      files/modules/y0_remove-ssh-host-keys.sh
  3. +8
    -0
      tasks/prepare.yml

+ 3
- 0
defaults/main.yml View File

@@ -20,6 +20,9 @@ debirf_default_modules:
- z0_remove-locales
- z1_clean-root

debirf_custom_modules:
- y0_remove-ssh-host-keys

debirf_packages:
# packages
- ifupdown


+ 6
- 0
files/modules/y0_remove-ssh-host-keys.sh View File

@@ -0,0 +1,6 @@
#!/bin/sh -e

# debirf module: remove-locales

cd "$DEBIRF_ROOT"/etc/ssh/
rm ssh_host_*

+ 8
- 0
tasks/prepare.yml View File

@@ -30,6 +30,14 @@
group: debirf
with_items: "{{ debirf_default_modules }}"

- name: custom modules
copy:
src: "modules/{{item}}.sh"
dest: "{{ debirf_profile_directory }}/modules/{{item}}.sh"
owner: debirf
group: debirf
with_items: "{{ debirf_custom_modules }}"

- name: packages
template:
src: packages.j2