--- - name: install gnome shell integration when: "'GNOME' in ansible_env.XDG_CURRENT_DESKTOP | default('')" become: true package: name: gnome-browser-connector state: latest - name: create policies directory become: true file: path: /etc/firefox/policies mode: '755' state: directory - name: install enterprise policies become: true template: src: policies.json.j2 dest: /etc/firefox/policies/policies.json mode: '644'