'Management of LXC containers via Ansible.
:param module: Processed Ansible Module.
:type module: ``object``'

def __init__(self, module):

    self.module = module
    self.name = self.module.params['name']
    self._build_config()
    self.state = self.module.params['state']
    self.timeout = self.module.params['timeout']
    self.wait_for_ipv4_addresses = self.module.params['wait_for_ipv4_addresses']
    self.force_stop = self.module.params['force_stop']
    self.addresses = None
    self.url = self.module.params['url']
    self.key_file = self.module.params.get('key_file', None)
    self.cert_file = self.module.params.get('cert_file', None)
    self.debug = (self.module._verbosity >= 4)
    try:
        self.client = LXDClient(self.url, key_file=self.key_file, cert_file=self.cert_file, debug=self.debug)
    except LXDClientException as e:
        self.module.fail_json(msg=e.msg)
    self.trust_password = self.module.params.get('trust_password', None)
    self.actions = []
