Skip to content

Commit d5bbd5d

Browse files
committed
kvm: install dependencies for Linux network namespace
1 parent 6bcc8e0 commit d5bbd5d

4 files changed

Lines changed: 54 additions & 0 deletions

File tree

Ansible/roles/kvm/tasks/centos8.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,19 @@
8686
tags:
8787
- kvm
8888

89+
- name: Install utilities and tools for Linux network namespace
90+
dnf: name={{ item }} state=present enablerepo=base
91+
with_items:
92+
- iproute
93+
- iptables
94+
- iputils
95+
- dnsmasq
96+
- haproxy
97+
- httpd
98+
- util-linux
99+
tags:
100+
- kvm
101+
89102
- name: install python-argparse
90103
pip:
91104
name: argparse

Ansible/roles/kvm/tasks/debian.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@
7070
- ovmf
7171
- swtpm
7272

73+
- name: Install utilities and tools for Linux network namespace
74+
apt:
75+
pkg: "{{ item }}"
76+
state: latest
77+
update_cache: yes
78+
with_items:
79+
- iproute2
80+
- iptables
81+
- arping
82+
- dnsmasq
83+
- haproxy
84+
- apache2
85+
- util-linux
86+
7387
- set_fact: java_ver="{{ kvm_java_ver }}"
7488
- set_fact: java_path="{{ kvm_java_path }}"
7589

Ansible/roles/kvm/tasks/el9.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,19 @@
101101
tags:
102102
- kvm
103103

104+
- name: Install utilities and tools for Linux network namespace
105+
dnf: name={{ item }} state=present enablerepo=base
106+
with_items:
107+
- iproute
108+
- iptables
109+
- iputils
110+
- dnsmasq
111+
- haproxy
112+
- httpd
113+
- util-linux
114+
tags:
115+
- kvm
116+
104117
- name: install python-argparse
105118
pip:
106119
name: argparse

Ansible/roles/kvm/tasks/ubuntu.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,20 @@
6969
- qemu-kvm
7070
- parted
7171

72+
- name: Install utilities and tools for Linux network namespace
73+
apt:
74+
pkg: "{{ item }}"
75+
state: latest
76+
update_cache: yes
77+
with_items:
78+
- iproute2
79+
- iptables
80+
- arping
81+
- dnsmasq
82+
- haproxy
83+
- apache2
84+
- util-linux
85+
7286
- name: Install packages for UEFI
7387
apt:
7488
pkg: "{{ item }}"

0 commit comments

Comments
 (0)