+ when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
+
+ - name: Download geckodriver
+ unarchive:
+ src: https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
+ dest: /usr/bin
+ mode: 0755
+ remote_src: yes
+ become: true
+ when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
+
+ - name: Download Firefox version 55.0.3
+ unarchive:
+ src: https://download-installer.cdn.mozilla.net/pub/firefox/releases/55.0.3/linux-x86_64/en-US/firefox-55.0.3.tar.bz2
+ dest: /opt
+ mode: 0755
+ remote_src: yes
+ become: true
+ when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
+
+ - name: Create symbolic link to firefox bin
+ file:
+ src: "/opt/firefox/firefox"
+ dest: "/usr/bin/firefox"
+ state: link
+ become: true
+ when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
+
+ - name: Install jinja2
+ pip:
+ name: jinja2
+ state: present
+ become: true
+ when: ansible_architecture == 'x86_64'