---
- name: Install Firefox
  package:
    name: "{{ firefox_package }}"
    state: present

- name: Ensure Firefox distribution policies directory exists
  file:
    path: "{{ firefox_policy_dir }}"
    state: directory
    mode: '0755'

- name: Deploy Firefox Enterprise Policies file
  template:
    src: policies.json.j2
    dest: "{{ firefox_policy_file }}"
    mode: '0644'
