create molecule scenario and adapt role

This commit is contained in:
HgO
2020-12-02 18:40:25 +01:00
parent ec99b9694d
commit 14fff84200
5 changed files with 43 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
---
- name: Converge
hosts: all
roles:
- ansible-role-acme

View File

@@ -0,0 +1,19 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: buster-acme-molecule
image: debian:buster-slim
pre_build_image: true
- name: focal-acme-molecule
image: ubuntu:focal
pre_build_image: true
provisioner:
name: ansible
config_options:
defaults:
interpreter_python: /usr/bin/python3
verifier:
name: ansible

View File

@@ -0,0 +1,10 @@
- name: Prepare
hosts: all
gather_facts: no
tasks:
- name: Update apt cache
raw: apt update
- name: Install python3 package
raw: apt install -y --no-install-recommends python3