This repository was archived by the owner on Oct 15, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 28
28
- item.registry.credentials.username is defined
29
29
30
30
- name : Create Dockerfiles from image names
31
+ # noqa 208
31
32
template :
32
33
src : " {{ item.dockerfile | default('Dockerfile.j2') }}"
33
34
dest : " {{ molecule_ephemeral_directory }}/Dockerfile_{{ item.image | regex_replace('[^a-zA-Z0-9_]', '_') }}"
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ docker_network_defaults:
26
26
# TODO: readd yum update when Docker cgroup bug is fixed
27
27
# TODO: btw why is there no dnf update while there's an equivalent in all other distros?
28
28
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; \
30
30
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python3 sudo python3-devel python3-dnf bash && dnf clean all; \
31
31
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; \
32
32
elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; \
Original file line number Diff line number Diff line change 4
4
hosts : all
5
5
gather_facts : yes
6
6
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 }}"
19
7
# to ensure having a real FQDN
20
8
# (dots are not allowed in LXD container names, thus sticking to short names)
21
9
- name : set proper hostname
You can’t perform that action at this time.
0 commit comments