blob: f862af0c1602910476a0fec2f40f9de7535dace0 [file] [log] [blame]
Zack Williamse695dea2020-11-19 17:17:40 -07001---
2# netprep molecule/default/verify.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7- name: Converge
8 hosts: all
Wei-Yu Chen6509d742021-07-29 21:14:51 +08009 become: true
10 pre_tasks:
11 - name: Create an additional Docker network
12 docker_network:
13 name: limited_network
14 driver_options:
15 com.docker.network.bridge.name: docker1
16 ipam_options:
17 subnet: '172.27.0.0/16'
18 gateway: 172.27.0.1
Zack Williamse695dea2020-11-19 17:17:40 -070019 tasks:
20 - name: "Include netprep"
21 include_role:
22 name: "netprep"
Wei-Yu Chen6509d742021-07-29 21:14:51 +080023 vars:
24 netprep_router: true
25 netprep_netplan:
26 ethernets:
27 eth0:
28 dhcp4: true
29 netprep_nftables:
30 internal_if: docker0
31 external_if: docker1
32 services:
33 - name: nginx8080
34 port: 8080
35 protocol: tcp
36 allow_subnets:
37 - 172.17.0.0/16