aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-04 20:29:21 +0100
committerbinary <me@rgoncalves.se>2020-11-04 20:29:21 +0100
commite23695d52e0812b01dbf399514ba65e4ae0bf985 (patch)
treeb51fbf4fe947e447b8461d797e245b6a7ad7054b /roles/vmm/tasks
parentaa7752a360691042809e97fe36d0d71995940759 (diff)
downloadinfrastructure-e23695d52e0812b01dbf399514ba65e4ae0bf985.tar.gz
Refactor
Diffstat (limited to 'roles/vmm/tasks')
-rw-r--r--roles/vmm/tasks/generate_vmconfig.yml5
-rw-r--r--roles/vmm/tasks/init_alpine.yml31
2 files changed, 0 insertions, 36 deletions
diff --git a/roles/vmm/tasks/generate_vmconfig.yml b/roles/vmm/tasks/generate_vmconfig.yml
deleted file mode 100644
index 8d5609a..0000000
--- a/roles/vmm/tasks/generate_vmconfig.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-# vmm_deploy ~~ tasks/main.yml
-
----
-
diff --git a/roles/vmm/tasks/init_alpine.yml b/roles/vmm/tasks/init_alpine.yml
deleted file mode 100644
index da0a33c..0000000
--- a/roles/vmm/tasks/init_alpine.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-# vmm ~~ tasks/init_alpine.yml
-
----
-
-- set_fact:
- dest_symlink: "{{ vmm.iso.dir }}/{{ vmm.iso.alpine.name }}-latest.iso"
-
-- set_fact:
- dest_iso: "{{ dest_symlink | regex_replace('latest', vmm.iso.alpine.version) }}"
- url_iso: "{{ vmm.iso.alpine.url | regex_replace('VERSION', vmm.iso.alpine.version) }}"
-
-- name: Check latest Alpine iso on disk
- stat:
- path: "{{ dest_iso }}"
- register: dest_result
-
-- name: Get latest Alpine iso
- get_url:
- url: "{{ url_iso }}"
- dest: "{{ dest_iso }}"
- checksum: "sha256:{{ url_iso }}.sha256"
- when: not dest_result.stat.exists
-
-- name: Symlink latest iso
- file:
- src: "{{ dest_iso }}"
- dest: "{{ dest_symlink }}"
- #owner: "{{ vmm.user }}"
- #group: "{{ vmm.group }}"
- state: link
remember that computers suck.