Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Verify role for Ubuntu 20.04

Fabian Kollerbdf2e298435b
diff --git a/ansible/molecule/default/molecule.yml b/ansible/molecule/default/molecule.yml
index 1bf938d98..27f37ba63 100644
--- a/ansible/molecule/default/molecule.yml
+++ b/ansible/molecule/default/molecule.yml
@@ -4,6 +4,20 @@ dependency:
driver:
name: docker
platforms:
+ - name: ubuntu_focal
+ image: jrei/systemd-ubuntu:20.04
+ privileged: true
+ volumes:
+ - /sys/fs/cgroup:/sys/fs/cgroup:ro
+ tmpfs:
+ - /tmp
+ - /run
+ - /run/lock
+ override_command: False
+ # ubuntu 18.04 bionic works except that
+ # the default redis configuration expects IPv6 which is not enabled in docker by default
+ # the default Python environment is configured for ASCII instead of UTF-8
+ # ubuntu 16.04 xenial only has Python 3.5 which is EOL and breaks multiple dependencies
- name: debian_buster
image: jrei/systemd-debian:10
privileged: true
diff --git a/ansible/tasks/main.yml b/ansible/tasks/main.yml
index 77635b3d1..c94534895 100644
--- a/ansible/tasks/main.yml
+++ b/ansible/tasks/main.yml
@@ -1,8 +1,8 @@
---
- name: verify operating system
fail:
- msg: Sorry, only Debian supported at the moment.
- when: ansible_distribution != 'Debian'
+ msg: Sorry, only Debian and Ubuntu supported at the moment.
+ when: not(ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu')
- name: install base dependencies
apt: