thebinary.lxd

ansible-role-lxd

This is an Ansible role that installs LXD on Ubuntu and sets it up according to the getting started guide.

Requirements

  • The machine you are installing this on must be running Ubuntu.

Role Variables

Variable Description Default Value Possible Values
lxd_allow_remote Allows remote LXC clients to use the HTTPS API false true, false
lxd_https_listen_address Address for the API to listen on [::] Any valid bind address
lxd_trust_password Password for remote LXC clients 4trustlxd123 Any string
lxd_lxc_path Path to the LXC binary after LXD installation /usr/bin/lxc Change only if the installation path is modified

Dependencies

There are no dependencies.

Example Playbook

To install LXD:

# example1.yml
# A simple playbook to install LXD

- hosts: lxd0
  roles:
    - { role: thebinary.lxd }

To install LXD and allow remote operations with an LXC client:

# example2.yml
# A playbook to install LXD and enable remote operations

- hosts: lxd1
  roles:
    - { role: thebinary.lxd, lxd_allow_remote: true }

- hosts: lxd2
  roles:
    - { role: thebinary.lxd, lxd_allow_remote: true, lxd_trust_password: "somepassword" }

License

This project is licensed under the MIT License.

Author Information

Author: thebinary
Email: binary4bytes@gmail.com

Informazioni sul progetto

Installs LXD on Ubuntu and performs base configuration as given in get started guide

Installa
ansible-galaxy install thebinary.lxd
Licenza
mit
Download
189
Proprietario