--- - name: Install firefox (Archlinux) become: true pacman: name: - firefox when: ansible_distribution == 'Archlinux' - name: Install firefox (Debian) become: true apt: name: - firefox-esr when: ansible_distribution == 'Debian' - name: Open addon pages for installation command: "firefox {{ lookup('file', 'addons.txt') }}" changed_when: false