---

- name: "{{ lxc_php_version }} - Install ssmtp"
  lxc_container:
    name: "{{ lxc_php_version }}"
    container_command: "DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y ssmtp "

- name: "{{ lxc_php_version }} - Configure ssmtp"
  template:
    src: ssmtp.conf.j2
    dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/ssmtp/ssmtp.conf"
    mode: "0644"
