aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vmm/tasks/main.yml')
-rw-r--r--roles/vmm/tasks/main.yml34
1 files changed, 7 insertions, 27 deletions
diff --git a/roles/vmm/tasks/main.yml b/roles/vmm/tasks/main.yml
index 3c5a462..c596664 100644
--- a/roles/vmm/tasks/main.yml
+++ b/roles/vmm/tasks/main.yml
@@ -13,6 +13,10 @@
- name: include facts generation
include_tasks: facts.yml
+- name: include autoinstall generation
+ include_tasks: autoinstall-configuration.yml
+ tags: task_autoinstall_configuration
+
- name: include iso management
include_tasks: iso.yml
tags: task_iso
@@ -21,33 +25,9 @@
include_tasks: disk.yml
tags: task_disk
-- name: start ip forwarding
- command: sysctl net.inet.ip{{ item }}.forwarding=1
- loop: "{{ vmm_network_forwarded_ips }}"
-
-- name: enable ip forwarding
- lineinfile:
- path: /etc/sysctl.conf
- regexp: "^net.inet.ip{{ item }}.forwarding="
- line: "net.inet.ip{{ item }}.forwarding=1"
- owner: 0
- group: 0
- mode: 0640
- create: true
- loop: "{{ vmm_network_forwarded_ips }}"
-
-- name: create network switch
- lineinfile:
- path: "/etc/hostname.{{ vmm_network_switch.interface }}"
- regexp: &network_line "add {{ ansible_default_ipv4.interface }}"
- line: *network_line
- owner: 0
- group: 0
- mode: 0640
- create: true
-
-- name: start network switch
- command: "sh /etc/netstart {{ vmm_network_switch.interface }}"
+- name: include network management
+ include_tasks: network.yml
+ tags: task_network
- name: generate vmm configuration
template:
remember that computers suck.