aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-12-17 18:03:39 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-12-17 18:29:39 +0100
commit9e16f39b59069e752bbd24f5408e39e8ac24ec79 (patch)
tree330100ffd054bd274bfe11426aa0ecd7f267d550 /roles/vmm/tasks
parent83cfb7f2e072e63356acdc6640df849d78741813 (diff)
downloadrules-9e16f39b59069e752bbd24f5408e39e8ac24ec79.tar.gz
refactor(roles): force byte conversion by ansible
Diffstat (limited to 'roles/vmm/tasks')
-rw-r--r--roles/vmm/tasks/autoinstall_configuration.yml6
-rw-r--r--roles/vmm/tasks/iso.yml2
-rw-r--r--roles/vmm/tasks/main.yml4
-rw-r--r--roles/vmm/tasks/network.yml4
4 files changed, 8 insertions, 8 deletions
diff --git a/roles/vmm/tasks/autoinstall_configuration.yml b/roles/vmm/tasks/autoinstall_configuration.yml
index 71ceb6d..4901b61 100644
--- a/roles/vmm/tasks/autoinstall_configuration.yml
+++ b/roles/vmm/tasks/autoinstall_configuration.yml
@@ -8,7 +8,7 @@
path: "{{ vmm_autoinstall_dir }}"
owner: www
group: www
- mode: 0700
+ mode: "0700"
state: directory
- name: generate autoinstall configurations
@@ -17,7 +17,7 @@
dest: "{{ vmm_autoinstall_dir }}/{{ item.lladdr }}-install.conf"
owner: www
group: www
- mode: 0640
+ mode: "0640"
when: item.image == "openbsd"
loop: "{{ vmm_vms }}"
@@ -50,7 +50,7 @@
dest: "{{ vmm_image_openbsd_kernel_prefix }}.{{ item.name }}"
owner: 0
group: 0
- mode: 0600
+ mode: "0600"
state: hard
force: true
when: item.image == "openbsd"
diff --git a/roles/vmm/tasks/iso.yml b/roles/vmm/tasks/iso.yml
index 70ad593..a9cc38d 100644
--- a/roles/vmm/tasks/iso.yml
+++ b/roles/vmm/tasks/iso.yml
@@ -5,6 +5,6 @@
url: "{{ item.url }}"
dest: "{{ vmm_iso_dir }}/{{ item.name }}-latest.iso"
checksum: "{{ item.checksum }}"
- mode: 0644
+ mode: "0644"
tags: task_iso
loop: "{{ vmm_iso }}"
diff --git a/roles/vmm/tasks/main.yml b/roles/vmm/tasks/main.yml
index a7d4621..d12cadb 100644
--- a/roles/vmm/tasks/main.yml
+++ b/roles/vmm/tasks/main.yml
@@ -5,7 +5,7 @@
path: "{{ item }}"
owner: 0
group: 0
- mode: 0770
+ mode: "0770"
state: directory
loop:
- "{{ vmm_root_dir }}"
@@ -37,7 +37,7 @@
dest: "{{ vmm_configuration_file }}"
owner: 0
group: 0
- mode: 0640
+ mode: "0640"
notify:
- lint vmm configuration
diff --git a/roles/vmm/tasks/network.yml b/roles/vmm/tasks/network.yml
index 6846c05..b5ac4db 100644
--- a/roles/vmm/tasks/network.yml
+++ b/roles/vmm/tasks/network.yml
@@ -13,7 +13,7 @@
line: "net.inet.ip{{ item }}.forwarding=1"
owner: 0
group: 0
- mode: 0640
+ mode: "0640"
create: true
loop: "{{ vmm_network_forwarded_ips }}"
@@ -24,7 +24,7 @@
line: *network_line
owner: 0
group: 0
- mode: 0640
+ mode: "0640"
create: true
- name: start network switch # noqa: no-changed-when
remember that computers suck.