diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-10 10:29:24 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-10 10:29:24 +0200 |
commit | 776af264df59c62add3d8df0614dea4a315fefa2 (patch) | |
tree | 131922f9b94507632f4899b54a89f02e38d03bd6 /ansible/exolobe5.yml | |
parent | bcc970262c19e0d88c22f271ae05286d68ebdf87 (diff) | |
download | ansibleness-776af264df59c62add3d8df0614dea4a315fefa2.tar.gz |
exolobe5: adjust to current Debian installation with v-i
Sponsored-by: author
Diffstat (limited to 'ansible/exolobe5.yml')
-rw-r--r-- | ansible/exolobe5.yml | 46 |
1 files changed, 19 insertions, 27 deletions
diff --git a/ansible/exolobe5.yml b/ansible/exolobe5.yml index 9cf210d..5c47249 100644 --- a/ansible/exolobe5.yml +++ b/ansible/exolobe5.yml @@ -14,34 +14,21 @@ - jq - vmadm - python3-lxml - - bridge-utils - - name: "configure loopback network interface" - copy: - content: | - auto lo - iface lo inet loopback - dest: /etc/network/interfaces.d/lo - - name: "configure main network interface" - copy: - content: | - auto enp6s0 - iface enp6s0 inet manual - dest: /etc/network/interfaces.d/enp6s0 - - name: "configure bridge br0 for virtual machines to use" - copy: - content: | - auto br0 - iface br0 inet dhcp - bridge_ports enp6s0 - dest: /etc/network/interfaces.d/br0 - - name: "configure /etc/network/interfaces" - copy: - content: | - source /etc/network/interfaces.d/* - dest: /etc/network/interfaces - - name: "bring up network interfaces" + - name: "set permission of /mnt/vms" + file: + path: /mnt/vms + owner: root + group: libvirt + mode: 0775 + - name: "clone ansibleness to ~liw" + git: + repo: git://git.liw.fi/ansibleness + dest: /home/liw/ansibleness + - name: "set ownership of everything in ~liw/ansibleness" + args: + warn: false shell: | - ifup -a + chown -R liw:liw /home/liw/ansibleness - name: "create ~liw/base-images" file: state: directory @@ -109,6 +96,11 @@ owner: liw group: liw mode: 0644 + - name: "enable libvirt 'default' network" + virt_net: + name: default + autostart: yes + state: active vars: ansible_python_interpreter: /usr/bin/python3 |