mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
532 B
Plaintext
18 lines
532 B
Plaintext
8 years ago
|
[lxc]
|
||
|
lxc-pipelining ansible_ssh_pipelining=true
|
||
|
lxc-no-pipelining ansible_ssh_pipelining=false
|
||
|
[lxc:vars]
|
||
|
# 1. install lxc
|
||
|
# 2. install python2-lxc
|
||
|
# $ pip install git+https://github.com/lxc/python2-lxc.git
|
||
|
# 3. create container:
|
||
|
# $ sudo lxc-create -t download -n centos-7-amd64 -- -d centos -r 7 -a amd64
|
||
|
# 4. start container:
|
||
|
# $ sudo lxc-start -n centos-7-amd64 -d
|
||
|
# 5. run test:
|
||
|
# $ sudo -E make test_connection_lxc
|
||
|
# 6. stop container
|
||
|
# $ sudo lxc-stop -n centos-7-amd64
|
||
|
ansible_host=centos-7-amd64
|
||
|
ansible_connection=lxc
|