ansible-roles/lxc-php/tasks/main.yml
Ludovic Poujol e6f2bbb331 lxc-php: An almost complete rewrite ** BREAKING **
This is a breaking change as lxc-php should now be called for *each* php 
containers we want, with the correct lxc_php_version variable.

Current valid values are : 
- php56
- php70
- php73

Other changes includes : 
- LXC Containers are created by calling lxc as a dependency of the role.
- Relying on lxc_container module to do commands into the container 
(instead of the command module)
- PHP 7.3 container is now a Debian Buster container
- All containers will have opensmtpd to relay emails to postfix on the 
host system.
2020-04-01 17:17:00 +02:00

28 lines
640 B
YAML

---
<<<<<<< HEAD
- name: LXC configuration
include_role:
name: evolix/lxc
=======
- name: "Ensure that lxc_php_version is defined"
fail:
msg: Please configure var lxc_php_version
when: lxc_php_version is none
>>>>>>> lxc-php: An almost complete rewrite ** BREAKING **
- name: "Update APT cache in container {{lxc_php_version}}"
lxc_container:
name: "{{ lxc_php_version }}"
container_command: "apt-get update"
- include: "php56.yml"
when: lxc_php_version == "php56"
- include: "php70.yml"
when: lxc_php_version == "php70"
- include: "php73.yml"
when: lxc_php_version == "php73"
- include: "misc.yml"