diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-12-12 22:15:01 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-12-12 22:15:01 +0100 |
commit | db698b595e7ff088c96d00ef5285a0d634aff1be (patch) | |
tree | 4ec4242098a774e0de7ae1a4637b45b949e4ecce /roles/vmm | |
parent | ee3e324680a15d59429b1a2a0615fe787d169068 (diff) | |
download | rules-db698b595e7ff088c96d00ef5285a0d634aff1be.tar.gz |
refactor: pass ansible-lint with yaml header
Diffstat (limited to 'roles/vmm')
-rw-r--r-- | roles/vmm/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/vmm/handlers/main.yml | 2 | ||||
-rw-r--r-- | roles/vmm/meta/main.yml | 2 | ||||
-rw-r--r-- | roles/vmm/tasks/autoinstall_configuration.yml | 2 | ||||
-rw-r--r-- | roles/vmm/tasks/disk.yml | 2 | ||||
-rw-r--r-- | roles/vmm/tasks/facts.yml | 2 | ||||
-rw-r--r-- | roles/vmm/tasks/iso.yml | 2 | ||||
-rw-r--r-- | roles/vmm/tasks/main.yml | 2 | ||||
-rw-r--r-- | roles/vmm/tasks/network.yml | 2 |
9 files changed, 18 insertions, 0 deletions
diff --git a/roles/vmm/defaults/main.yml b/roles/vmm/defaults/main.yml index 91bae08..1eaf736 100644 --- a/roles/vmm/defaults/main.yml +++ b/roles/vmm/defaults/main.yml @@ -1,3 +1,5 @@ +--- + vmm_root_dir: /data/vmm vmm_autoinstall_dir: /var/www/htdocs/autoinstall vmm_iso_dir: /data/vmm/iso.d diff --git a/roles/vmm/handlers/main.yml b/roles/vmm/handlers/main.yml index a867c66..00bb0ad 100644 --- a/roles/vmm/handlers/main.yml +++ b/roles/vmm/handlers/main.yml @@ -1,2 +1,4 @@ +--- + - name: lint vmm configuration ansible.builtin.command: "vmd -nf {{ vmm_configuration_file }}" diff --git a/roles/vmm/meta/main.yml b/roles/vmm/meta/main.yml index 6b163d1..dd93239 100644 --- a/roles/vmm/meta/main.yml +++ b/roles/vmm/meta/main.yml @@ -1,3 +1,5 @@ +--- + dependencies: - role: httpd_pre tags: dependency diff --git a/roles/vmm/tasks/autoinstall_configuration.yml b/roles/vmm/tasks/autoinstall_configuration.yml index 4eccb93..71ceb6d 100644 --- a/roles/vmm/tasks/autoinstall_configuration.yml +++ b/roles/vmm/tasks/autoinstall_configuration.yml @@ -1,3 +1,5 @@ +--- + - name: include httpd role variables ansible.builtin.include_vars: "{{ inventory_dir }}/roles/httpd/defaults/main.yml" diff --git a/roles/vmm/tasks/disk.yml b/roles/vmm/tasks/disk.yml index 01fdc48..5883402 100644 --- a/roles/vmm/tasks/disk.yml +++ b/roles/vmm/tasks/disk.yml @@ -1,3 +1,5 @@ +--- + - name: create disks ansible.builtin.command: cmd: vmctl create -s "{{ item.size }}" "{{ item.name }}.{{ vmm_disk_format }}" diff --git a/roles/vmm/tasks/facts.yml b/roles/vmm/tasks/facts.yml index c3ae20c..ef1bfa6 100644 --- a/roles/vmm/tasks/facts.yml +++ b/roles/vmm/tasks/facts.yml @@ -1,3 +1,5 @@ +--- + - name: generate lladdr variable for virtual machines ansible.builtin.set_fact: vmm_vms_tmp: > diff --git a/roles/vmm/tasks/iso.yml b/roles/vmm/tasks/iso.yml index 320e7ca..70ad593 100644 --- a/roles/vmm/tasks/iso.yml +++ b/roles/vmm/tasks/iso.yml @@ -1,3 +1,5 @@ +--- + - name: download latest iso files ansible.builtin.get_url: url: "{{ item.url }}" diff --git a/roles/vmm/tasks/main.yml b/roles/vmm/tasks/main.yml index 7e1359e..a7d4621 100644 --- a/roles/vmm/tasks/main.yml +++ b/roles/vmm/tasks/main.yml @@ -1,3 +1,5 @@ +--- + - name: create vmm directories ansible.builtin.file: path: "{{ item }}" diff --git a/roles/vmm/tasks/network.yml b/roles/vmm/tasks/network.yml index 82f3597..6846c05 100644 --- a/roles/vmm/tasks/network.yml +++ b/roles/vmm/tasks/network.yml @@ -1,3 +1,5 @@ +--- + - name: start ip forwarding ansible.builtin.command: sysctl net.inet.ip{{ item }}.forwarding=1 loop: "{{ vmm_network_forwarded_ips }}" |