Skip to content

Commit c6b9706

Browse files
committed
Re-add test suite.
1 parent 236521a commit c6b9706

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

molecule/default/converge.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,36 @@
11
---
2+
# See https://github.com/metacloud/molecule/issues/843#issuecomment-304710797
3+
# and https://github.com/metacloud/molecule/blob/v2/test/scenarios/driver/ec2/molecule/default/playbook.yml#L1-L13
24
- name: Converge
35
hosts: all
46
gather_facts: false
57
tasks:
6-
- name: Replace this task with one that validates your content
7-
ansible.builtin.debug:
8-
msg: "This is the effective test"
8+
- name: Install Python3 for Ansible
9+
ansible.builtin.raw: test -e /usr/bin/python3 || (apt -y update && apt install -y python3-minimal)
10+
become: true
11+
changed_when: false
12+
13+
- name: Use molecule to test all roles in the playbook.
14+
hosts: all
15+
vars:
16+
update_apt_cache: true
17+
force_ssh_authentication: false
18+
19+
tasks:
20+
- name: Install Python3
21+
ansible.builtin.raw: apt-get install python3-minimal
22+
changed_when: false
23+
24+
module_defaults:
25+
ansible.builtin.apt:
26+
force_apt_get: true
27+
28+
roles:
29+
- security
30+
- base
31+
- db
32+
- rabbitmq
33+
- web
34+
- celery
35+
- memcached
36+
- nginx

0 commit comments

Comments
 (0)