diff --git a/playbooks/docker_ipv6_nat.yml b/playbooks/docker_ipv6_nat.yml deleted file mode 100644 index ebee8eb..0000000 --- a/playbooks/docker_ipv6_nat.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -# Infrastructure -# Ansible instructions to deploy the infrastructure -# Copyright (C) 2020 Saibotk -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -- name: Install & configure Docker IPv6 NAT - hosts: docker_ipv6_nat - roles: - - docker - - docker_cleanup - - docker_ipv6_nat diff --git a/roles/docker_ipv6_nat/README.md b/roles/docker_ipv6_nat/README.md deleted file mode 100644 index 7516b59..0000000 --- a/roles/docker_ipv6_nat/README.md +++ /dev/null @@ -1,31 +0,0 @@ -docker_ipv6_nat -=============== - -This will install the [docker-ipv6nat](https://github.com/robbertkl/docker-ipv6nat) container to manage IPv6 with ease on a single IP. -The container will automatically create ip6table forwarding rules on demand. To use the functionality, make sure that each container, that exposes a port -also has an `ipv6_enabled: true` user-defined network attached to it, with a ULA IPv6 for the tool to forward to. - -**Note: This will enable the kernel module `ipv6nat` if not enabled!** - -Requirements ------------- - -You will need to have docker, docker-compose installed or declared as dependencies with their respective roles. - -Role Variables --------------- - -**Please look at the [defaults/main.yml](defaults/main.yml) for all available variables and their description.** - -**Note: Lines that are commented out via `#` are usually still valid/used variables, but they are not defined by default, so they might enable a feature, when uncommenting/defining them!** - -Dependencies ------------- - -- docker -- docker-compose - -License -------- - -GPL-3.0-only diff --git a/roles/docker_ipv6_nat/defaults/main.yml b/roles/docker_ipv6_nat/defaults/main.yml deleted file mode 100644 index 8beffaf..0000000 --- a/roles/docker_ipv6_nat/defaults/main.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -# Default variables for the docker_ipv6_nat role - -# Infrastructure -# Ansible instructions to deploy the infrastructure -# Copyright (C) 2020 Saibotk -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# The install location (where the docker-compose.yml file will be deployed) -docker_ipv6_nat_install_location: /srv/docker-ipv6-nat - -# The docker image and version/tag to use -docker_ipv6_nat_baseimage: docker.io/robbertkl/ipv6nat -# renovate: depName=docker.io/robbertkl/ipv6nat -docker_ipv6_nat_version: 0.4.4 diff --git a/roles/docker_ipv6_nat/meta/main.yml b/roles/docker_ipv6_nat/meta/main.yml deleted file mode 100644 index f035282..0000000 --- a/roles/docker_ipv6_nat/meta/main.yml +++ /dev/null @@ -1,43 +0,0 @@ -galaxy_info: - author: saibotk - description: "Deploys a robbertkl/ipv6nat container." - license: GPL-3.0-only - min_ansible_version: "2.9" - standalone: true - - platforms: - - name: EL - versions: - - all - - name: GenericUNIX - versions: - - all - - name: Fedora - versions: - - all - - name: opensuse - versions: - - all - - name: GenericBSD - versions: - - all - - name: FreeBSD - versions: - - all - - name: Ubuntu - versions: - - all - - name: SLES - versions: - - all - - name: GenericLinux - versions: - - all - - name: Debian - versions: - - all - - galaxy_tags: [] - -dependencies: - - role: docker diff --git a/roles/docker_ipv6_nat/tasks/main.yml b/roles/docker_ipv6_nat/tasks/main.yml deleted file mode 100644 index 650721e..0000000 --- a/roles/docker_ipv6_nat/tasks/main.yml +++ /dev/null @@ -1,55 +0,0 @@ ---- -# Tasks file for the docker_ipv6_nat role - -# Infrastructure -# Ansible instructions to deploy the infrastructure -# Copyright (C) 2020 Saibotk -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -- name: Create install directory - ansible.builtin.file: - path: "{{ item }}" - state: directory - mode: "0700" - owner: "root" - group: "root" - with_items: - - "{{ docker_ipv6_nat_install_location }}" - tags: - - docker-ipv6-nat - become: true - -- name: Deploy docker-compose.yml - ansible.builtin.template: - src: docker-compose.yml - dest: "{{ docker_ipv6_nat_install_location }}/docker-compose.yml" - mode: "0600" - owner: "root" - group: "root" - validate: docker compose -f %s config -q - tags: - - docker - - docker-ipv6-nat - become: true - -- name: Compose docker-ipv6-nat - community.docker.docker_compose_v2: - state: present - project_src: "{{ docker_ipv6_nat_install_location }}" - pull: always - remove_orphans: true - tags: - - docker - - docker-ipv6-nat - become: true diff --git a/roles/docker_ipv6_nat/templates/docker-compose.yml b/roles/docker_ipv6_nat/templates/docker-compose.yml deleted file mode 100644 index b2552bb..0000000 --- a/roles/docker_ipv6_nat/templates/docker-compose.yml +++ /dev/null @@ -1,35 +0,0 @@ -{{ ansible_managed | comment }} - -# Infrastructure -# Ansible instructions to deploy the infrastructure -# Copyright (C) 2020 Saibotk -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -version: '2' -services: - ipv6nat: - image: {{ docker_ipv6_nat_baseimage }}:{{ docker_ipv6_nat_version }} - security_opt: - - label:disable - restart: always - network_mode: "host" - volumes: - - "/var/run/docker.sock:/var/run/docker.sock:ro" - - "/lib/modules:/lib/modules:ro" - cap_drop: - - ALL - cap_add: - - NET_ADMIN - - NET_RAW - - SYS_MODULE