ansible-roles/lxc
Mathieu Trossevin 23a486dc9a
[LXC] Force lxc containers to be in the correct timezone
Right now lxc containers are in the Etc/UTC timezone, this commit change
it so that they are in the same timezone as the host by copying
/etc/timezone and /etc/localtime (without dereferencing it) inside of
the container.

It might not be able to survive an update of the tzdata package however.
(Debian shouldn't change manual configuration upon update but they chose
to anyways so bear with it).
2020-07-27 11:53:03 +02:00
..
defaults Fix multiple bugs in lxc role after testing 2017-08-24 12:09:41 -04:00
meta lxc: Allow this role to be called multiple times 2020-04-01 17:17:00 +02:00
tasks [LXC] Force lxc containers to be in the correct timezone 2020-07-27 11:53:03 +02:00
templates Replace version_compare() with version() 2020-02-25 10:45:35 +01:00
README.md Fix multiple bugs in lxc role after testing 2017-08-24 12:09:41 -04:00

README.md

lxc

Install and configure lxc and create containers.

Tasks

Everything is in the tasks/main.yml file.

Available variables

Here is the list of available variables:

  • lxc_unprivilegied_containers: should LXC containers run in unprivilegied (non root) mode? Currently lxc_unprivilegied_containers: true does not work. Default: false
  • lxc_network_type: network type to use. See lxc.container.conf(5). Default: "none"
  • lxc_mount_part: partition to bind mount into containers. Default: "/home"
  • lxc_containers: list of LXC containers to create. Default: [] (empty). Eg.:
    lxc_containers:
      - name: php56
        release: jessie
      - name: php70
        release: stretch