Skip to content

Commit a0f415a

Browse files
committed
changes to make molecule testing work, i think?
1 parent 5ed0188 commit a0f415a

5 files changed

Lines changed: 17 additions & 4 deletions

File tree

meta/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22

33
galaxy_info:
4+
role_name: tomcat
5+
namespace: rhythmictech
46
author: Rhythmic Open Source <opensource@rhythmictech.com>
57
description: Ansible Role for Apache Tomcat
68
company: Rhythmic Technologies, Inc.

molecule/default/converge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
tasks:
88
- name: "Include ansible-role-tomcat"
99
include_role:
10-
name: "ansible-role-tomcat"
10+
name: "rhythmictech.tomcat"

molecule/default/molecule.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ driver:
55
name: docker
66
platforms:
77
- name: instance
8-
image: docker.io/pycontribs/centos:7
8+
image: docker.io/geerlingguy/docker-amazonlinux2023-ansible
99
pre_build_image: true
10-
command: /sbin/init
10+
command: /usr/lib/systemd/systemd
1111
tmpfs:
1212
- /run
1313
- /tmp
1414
volumes:
15-
- /sys/fs/cgroup:/sys/fs/cgroup:ro
15+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
16+
cgroupns_mode: host
17+
privileged: true
1618
provisioner:
1719
name: ansible
1820
verifier:

molecule/default/prepare.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- name: Prepare
3+
hosts: all
4+
tasks:
5+
- name: ensure tar is installed
6+
ansible.builtin.package:
7+
name: tar
8+
state: present

tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
- name: give tomcat group access to read all in CATALINA_HOME
3636
command: "find {{ _tomcat_catalina_home }}/ -exec /bin/chgrp {{ tomcat_group }} {} \\;"
3737
tags: ['tomcat']
38+
changed_when: false
3839

3940
- name: restrict access to CATALINA_HOME
4041
file: path="{{ _tomcat_catalina_home }}" state=directory owner="root" group="{{ tomcat_group }}" mode='0750'

0 commit comments

Comments
 (0)