Simple wrapper over the lxdm ansible role to manage LXD container lifecyle.
acm
stand for 'ansible container management'.
See the ansible-lxdm role.
To install in your path:
make install
See:
acm -h
# start container ('u' for up)
alias acu="acm start"
# stop container
alias acs="acm stop"
# restart container
alias acr="acm restart"
# delete container
alias acd="acm delete"
# freeze container
alias acf="acm freeze"
# provision container
alias acp="acm provision"
Another way would be with a python CLI using pylxd
bindings, and the ansible
API. It would be required to inject Dynamic inventory...