Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 3364e99

Browse files
committed
tests: update template to 1.0.1
1 parent 1e88818 commit 3364e99

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

molecule/_resources/create-docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- item.registry.credentials.username is defined
2929

3030
- name: Create Dockerfiles from image names
31+
# noqa 208
3132
template:
3233
src: "{{ item.dockerfile | default('Dockerfile.j2') }}"
3334
dest: "{{ molecule_ephemeral_directory }}/Dockerfile_{{ item.image | regex_replace('[^a-zA-Z0-9_]', '_') }}"

molecule/_resources/group_vars/all/common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ docker_network_defaults:
2626
# TODO: readd yum update when Docker cgroup bug is fixed
2727
# TODO: btw why is there no dnf update while there's an equivalent in all other distros?
2828
image_setup: |
29-
if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y systemd-sysv python sudo bash ca-certificates && apt-get clean; \
29+
if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y systemd-sysv python3 sudo bash ca-certificates && apt-get clean; \
3030
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python3 sudo python3-devel python3-dnf bash && dnf clean all; \
3131
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
3232
elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; \

molecule/_resources/prepare.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@
44
hosts: all
55
gather_facts: yes
66
tasks:
7-
- name: "Display kernel version"
8-
debug:
9-
var: ansible_kernel_version
10-
- name: "Display OS version #1"
11-
slurp:
12-
src: "{{ (ansible_os_family == 'Debian') | ternary('/etc/debian_version', '/etc/redhat-release') }}"
13-
ignore_errors: True
14-
changed_when: False
15-
register: os_version
16-
- name: "Display OS version #1"
17-
debug:
18-
msg: "{{ os_version['content'] | b64decode }}"
197
# to ensure having a real FQDN
208
# (dots are not allowed in LXD container names, thus sticking to short names)
219
- name: set proper hostname

0 commit comments

Comments
 (0)