Skip to content

CowDogMoo/ansible-firefox

Repository files navigation

Ansible Role: firefox

Pre-Commit Molecule Test Ansible Galaxy License

This role installs firefox on Ubuntu hosts.

Requirements

  • Python packages

    Install with:

    python3 -m pip install --upgrade molecule-docker

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

Path to python3 interpreter on the target system.

ansible_python_interpreter: /usr/bin/python3

Debian-specific vars:

Required packages for the installation.

install_packages:
  - dirmngr

Dependencies

None.


Example Playbook

---
- name: Example playbook
  hosts: all
  become: true
  environment:
    DEBIAN_FRONTEND: noninteractive
  roles:
    - role: cowdogmoo.firefox

Local Development

Make sure to run the following to develop locally:

PATH_TO_ROLE="${PWD}"
ln -s "${PATH_TO_ROLE}" "${HOME}/.ansible/roles/cowdogmoo.firefox"

Testing

To test changes made to this role, run the following commands:

molecule create
molecule converge
molecule idempotence
# If everything passed, tear down the docker container spawned by molecule:
molecule destroy