Skip to content

Commit 8740a85

Browse files
committed
Migrate to molecule
1 parent 28ee922 commit 8740a85

File tree

6 files changed

+42
-6
lines changed

6 files changed

+42
-6
lines changed

molecule/default/converge.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- name: Converge
3+
hosts: all
4+
5+
tasks:
6+
- name: Include this role
7+
include_role:
8+
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"

molecule/default/molecule.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
dependency:
3+
name: galaxy
4+
driver:
5+
name: docker
6+
options:
7+
# options relevant if started with molecule `create -d delegated` to apply locally
8+
managed: False
9+
ansible_connection_options:
10+
ansible_connection: local
11+
platforms:
12+
- name: instance
13+
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest"
14+
pre_build_image: true
15+
provisioner:
16+
name: ansible
17+
log: True
18+
verifier:
19+
name: ansible

molecule/default/verify.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# This is an example playbook to execute Ansible tests.
3+
4+
- name: Verify
5+
hosts: all
6+
tasks:
7+
- name: Example assertion
8+
assert:
9+
that: true

tasks/main.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
---
2+
- name: Update apt cache.
3+
apt: update_cache=yes cache_valid_time=3600
4+
- name: Install dirmngr in order to be able to install the apt signing key
5+
apt:
6+
pkg:
7+
- dirmngr
28
- name: Add Microsoft apt signing key on remote server to keyring
39
apt_key:
410
id: BC528686B50D79E339D3721CEB3E94ADBE1229CF

tests/inventory

-1
This file was deleted.

tests/test.yml

-5
This file was deleted.

0 commit comments

Comments
 (0)