File tree Expand file tree Collapse file tree 1 file changed +31
-3
lines changed
Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments