You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

prepare.yml 1.5KB

6 jaren geleden
5 jaren geleden
6 jaren geleden
6 jaren geleden
6 jaren geleden
6 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ---
  2. - name: profile directory
  3. file:
  4. state: directory
  5. path: "{{ debirf_profile_directory }}"
  6. owner: debirf
  7. group: debirf
  8. - name: debirf configuration
  9. template:
  10. src: debirf.conf.j2
  11. dest: "{{ debirf_profile_directory }}/debirf.conf"
  12. owner: debirf
  13. group: debirf
  14. - name: modules directory
  15. file:
  16. state: directory
  17. path: "{{ debirf_profile_directory }}/modules"
  18. owner: debirf
  19. group: debirf
  20. - name: default modules
  21. file:
  22. state: link
  23. src: /usr/share/debirf/modules/{{item}}
  24. dest: "{{ debirf_profile_directory }}/modules/{{item}}"
  25. owner: debirf
  26. group: debirf
  27. with_items: "{{ debirf_default_modules }}"
  28. - name: custom modules
  29. copy:
  30. src: "modules/{{item}}.sh"
  31. dest: "{{ debirf_profile_directory }}/modules/{{item}}.sh"
  32. owner: debirf
  33. group: debirf
  34. with_items: "{{ debirf_custom_modules }}"
  35. - name: packages
  36. template:
  37. src: packages.j2
  38. dest: "{{ debirf_profile_directory }}/packages"
  39. owner: debirf
  40. group: debirf
  41. when: debirf_packages is defined
  42. - name: default packages
  43. copy:
  44. src: /usr/share/debirf/packages
  45. remote_src: true
  46. dest: "{{ debirf_profile_directory }}/default-packages"
  47. owner: debirf
  48. group: debirf
  49. - name: do not exclude packages which are to be included
  50. lineinfile:
  51. path: "{{ debirf_profile_directory }}/default-packages"
  52. regexp: '^[\-]{{ item | regex_escape }}$'
  53. state: absent
  54. with_items: "{{ debirf_packages }}"
  55. when: debirf_packages is defined