---
- name: "Ensure that lxc_php_version is defined"
  fail:
    msg: Please configure var lxc_php_version
  when: lxc_php_version is none

- 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: "php74.yml"
  when: lxc_php_version == "php74"

- include: "misc.yml"
