diff --git a/main.yml b/main.yml index 85b6fad..50ed72e 100644 --- a/main.yml +++ b/main.yml @@ -49,8 +49,14 @@ - role: install-docker tasks: - - name: Setup Docker Environment - include_tasks: tasks/docker_env.yml + - name: Setup docker network + docker_network: + name: dockernet + driver: bridge + ipam_config: + - subnet: 192.168.0.0/24 + gateway: 192.168.0.1 + state: present - name: Setup httpd include_tasks: tasks/httpd.yml diff --git a/tasks/docker_env.yml b/tasks/docker_env.yml deleted file mode 100644 index 3e05570..0000000 --- a/tasks/docker_env.yml +++ /dev/null @@ -1,10 +0,0 @@ -- name: Setup docker network - docker_network: - name: dockernet - driver: bridge - ipam_config: - - subnet: 192.168.0.0/24 - gateway: 192.168.0.1 - state: present - -