Move start container up
This commit is contained in:
parent
b3cc8f933f
commit
f7bd0b10ae
|
@ -138,6 +138,7 @@ install python3 in it before running the corresponding playbooks. For example,
|
|||
to setup the DNS container, run the following **as root**:
|
||||
```
|
||||
lxc-create -t download -n dns -- -d debian -r buster -a amd64
|
||||
lxc-start -n dns
|
||||
chroot /var/lib/lxc/dns/rootfs
|
||||
echo 'nameserver 1.1.1.1' > /etc/resolv.conf
|
||||
apt update
|
||||
|
@ -159,7 +160,6 @@ apt install -y ansible python3-lxc
|
|||
|
||||
Now we are ready to run the playbook:
|
||||
```
|
||||
lxc-start -n dns
|
||||
ansible-playbook dns/main.yml
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue