Fix tests on debian10, CentOS 7 and remove support for CentOS 6

This commit is contained in:
Thiago Almeida
2020-09-12 16:51:27 +02:00
parent 9e4cb6fb00
commit efc9f67064
14 changed files with 47 additions and 34 deletions
+1 -1
View File
@@ -38,4 +38,4 @@
when: ansible_os_family == 'Debian'
roles:
- geerlingguy.certbot-route53
- thiagoalmeidasa.certbot-route53
-2
View File
@@ -17,7 +17,5 @@ platforms:
pre_build_image: true
provisioner:
name: ansible
ansible_args:
- -vvvv
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
+19 -5
View File
@@ -9,18 +9,32 @@
pre_tasks:
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
apt:
name:
- python3-apt
update_cache: true
cache_valid_time: 600
when: ansible_os_family == 'Debian'
changed_when: false
- name: Install cron (RedHat).
yum: name=cronie state=present
yum:
name: cronie
state: present
when: ansible_os_family == 'RedHat'
- name: Install cron (Debian).
apt: name=cron state=present
- name: Install dependencies (Debian).
apt:
name:
- cron
- python-setuptools
- python3
- python3-apt
- python3-pip
- python3-setuptools
state: present
when: ansible_os_family == 'Debian'
roles:
- geerlingguy.git
- geerlingguy.certbot-route53
- thiagoalmeidasa.certbot-route53
@@ -125,7 +125,7 @@
when: ansible_os_family == 'Debian'
roles:
- geerlingguy.certbot-route53
- thiagoalmeidasa.certbot-route53
- geerlingguy.nginx
tasks: