Merge pull request 'Create molecule scenario and adapt role' (#4) from 3-create-molecule-scenario into master
Reviewed-on: #4pull/8/head
commit
f18368fc6f
|
@ -7,3 +7,4 @@ acme_accounts_dir: "{{ acme_config_dir }}/accounts"
|
||||||
acme_account_key: "acme_account.key"
|
acme_account_key: "acme_account.key"
|
||||||
acme_ssl_group: ssl-cert
|
acme_ssl_group: ssl-cert
|
||||||
acme_challenge_dir: /var/www/acme
|
acme_challenge_dir: /var/www/acme
|
||||||
|
acme_domains: []
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- name: Converge
|
||||||
|
hosts: all
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- ansible-role-acme
|
|
@ -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
|
|
@ -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
|
|
@ -1,9 +1,14 @@
|
||||||
- name: Install ACME dependencies
|
- name: Install ACME dependencies
|
||||||
apt:
|
package:
|
||||||
name: python3-acme
|
name: python3-acme
|
||||||
state: present
|
state: present
|
||||||
tags: acme_install
|
tags: acme_install
|
||||||
|
|
||||||
|
- name: Install SSL dependencies
|
||||||
|
package:
|
||||||
|
name: ssl-cert
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Create Let's Encrypt config directories
|
- name: Create Let's Encrypt config directories
|
||||||
file:
|
file:
|
||||||
path: "{{ config_dir }}"
|
path: "{{ config_dir }}"
|
||||||
|
|
Loading…
Reference in New Issue