---

- name: "{{ lxc_php_container_name }} - Install ssmtp"
  community.general.lxc_container:
    name: "{{ lxc_php_container_name }}"
    container_command: "DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends --yes --force-yes ssmtp "

- name: "{{ lxc_php_container_name }} - Configure ssmtp"
  ansible.builtin.template:
    src: ssmtp.conf.j2
    dest: "{{ lxc_rootfs }}/etc/ssmtp/ssmtp.conf"
    mode: "0644"
