简体   繁体   中英

How to create lxc containers in ubuntu 14.04 using Ansible module?

I am trying to create a lxc container by using lxc_container module provided by ansible. Can someone tell me the exact playbook task which will just create the lxc container ?

Based on the response in the comments above and your duplicate question.

It would appear that your issue is caused by not having the module lxc-python2 installed.

I'm also assuming there's other errors which your are overlooking in your posts and debugging efforts. So the steps to apply are as follows:

  1. sudo apt-get install python-pip
  2. pip install lxc-python2
  3. read any error output carefully.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM