Skip to content
Snippets Groups Projects
main.yml 833 B
Newer Older
- name: Live packages installation
  ansible.builtin.apt:
    force_apt_get: true
    install_recommends: false
    name: "{{ live_packages }}"
    state: present
  register: apt_status
  retries: 60
  until: apt_status is success or ('Failed to lock apt for exclusive operation' not in apt_status.msg and '/var/lib/dpkg/lock' not in apt_status.msg)

- name: TMPFS creation to store the live chunks
  notify: restart nginx
  ansible.posix.mount:
    path: /var/tmp/nginx-rtmp
    fstype: tmpfs
    opts: defaults,size={{ live_tmpfs_size }}
    state: mounted

Baptiste DE RENZO's avatar
Baptiste DE RENZO committed
# not working with a tmpfs (mode=777, user=group=root)
Antoine Schildknecht's avatar
Antoine Schildknecht committed
# - name: Changing the rights on the TMPFS directory
#   notify: restart nginx
#   ansible.builtin.file:
#     path: /var/tmp/nginx-rtmp
#     owner: nginx
#     group: root
#     mode: "0700"