blob: fa1325048cd6d12c1e85e5391825741192d219d7 [file] [log] [blame]
---
- hosts: nova-compute-1
remote_user: ubuntu
tasks:
- name: Install software
apt:
name={{ item }}
update_cache=yes
cache_valid_time=3600
become: yes
with_items:
- lxc
# replaces: sudo sed -i 's/lxcbr0/databr/' /etc/lxc/default.conf
- name: set lxc bridge interface to be databr
become: yes
lineinfile:
dest: /etc/lxc/default.conf
regexp: "^lxc.network.link ="
line: "lxc.network.link = databr"
- name: Create testclient
become: yes
shell: lxc-ls | grep testclient || lxc-create -t ubuntu -n testclient