WIP
This commit is contained in:
parent
904e5c0079
commit
a759784c85
13
Dockerfile
13
Dockerfile
|
@ -1,17 +1,20 @@
|
|||
FROM ubuntu:16.04
|
||||
FROM ubuntu:18.04
|
||||
MAINTAINER Mischa ter Smitten <mtersmitten@oefenweb.nl>
|
||||
|
||||
ENV LANG C.UTF-8
|
||||
ENV LC_ALL C.UTF-8
|
||||
|
||||
# python
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-dev curl && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-minimal python3-dev curl && \
|
||||
apt-get clean
|
||||
RUN curl -sL https://bootstrap.pypa.io/pip/2.7/get-pip.py | python -
|
||||
RUN curl -sL https://bootstrap.pypa.io/pip/3.6/get-pip.py | python3 -
|
||||
RUN rm -rf $HOME/.cache
|
||||
|
||||
# ansible
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gcc libffi-dev libssl-dev && \
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-apt && \
|
||||
apt-get clean
|
||||
RUN pip install ansible==2.9.15
|
||||
RUN pip3 install ansible==2.10.7
|
||||
RUN rm -rf $HOME/.cache
|
||||
|
||||
# provision
|
||||
|
|
|
@ -7,7 +7,7 @@ galaxy_info:
|
|||
company: Oefenweb.nl B.V.
|
||||
description: Set up ufw in Debian-like systems
|
||||
license: MIT
|
||||
min_ansible_version: 2.9.0
|
||||
min_ansible_version: 2.10.0
|
||||
platforms:
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
collections:
|
||||
- name: community.docker
|
||||
version: '>=1.2.0,<2'
|
||||
- name: community.general
|
||||
version: '>=2,<3'
|
|
@ -8,11 +8,11 @@ platforms:
|
|||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1604}-ansible:latest"
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||
- /var/lib/containerd
|
||||
cgroupns_mode: host
|
||||
privileged: true
|
||||
pre_build_image: true
|
||||
capabilities:
|
||||
- NET_ADMIN
|
||||
provisioner:
|
||||
name: ansible
|
||||
playbooks:
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# requirements file
|
||||
---
|
||||
collections: []
|
|
@ -1,4 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
{{ ansible_managed | comment }}
|
||||
|
||||
# /etc/default/ufw
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue