roles/firefox/tasks/main.yml

changeset 35
5da50e754d33
parent 27
98981c22420a
child 49
6dbfcfdf807c
--- a/roles/firefox/tasks/main.yml
+++ b/roles/firefox/tasks/main.yml
@@ -1,10 +1,15 @@
 ---
 - apt_repository:
     repo: "deb http://mozilla.debian.net/ {{ansible_distribution_release}}-backports firefox-release"
-  when: ansible_os_family == 'Debian'
+  when: >
+    ansible_os_family == 'Debian'
+    and ansible_distribution_release != 'NA'
   tags: repos
 
 - package:
     name: firefox
     state: latest
   tags: packages, install
+  when: >
+    not ( ansible_os_family == 'Debian'
+      and ansible_distribution_release == 'NA')

mercurial