Skip to content

Commit

Permalink
[change] Cleanup and create generator dir before find scripts are exe…
Browse files Browse the repository at this point in the history
…cuted
  • Loading branch information
nemesifier committed Mar 1, 2022
1 parent 1c8b014 commit 59704d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions tasks/2-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
mode: 0755
with_items: "{{ openwisp2fw_source_targets }}"

- name: "Remove {{ openwisp2fw_generator_dir }} (cleanup)"
file:
path: "{{ openwisp2fw_generator_dir }}"
state: absent

- name: "Create {{ openwisp2fw_generator_dir }}"
file:
path: "{{ openwisp2fw_generator_dir }}"
state: directory

- name: Prepare compile.sh
template:
src: compile/compile.sh.jinja2
Expand Down
10 changes: 0 additions & 10 deletions tasks/3-generator.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
- name: "Remove {{ openwisp2fw_generator_dir }} (cleanup)"
file:
path: "{{ openwisp2fw_generator_dir }}"
state: absent

- name: "Create {{ openwisp2fw_generator_dir }}"
file:
path: "{{ openwisp2fw_generator_dir }}"
state: directory

- name: Extract copies of imagebuilder archives
unarchive:
copy: false
Expand Down

0 comments on commit 59704d9

Please sign in to comment.