Commit 04224872 authored by hadret's avatar hadret

fix: tests.

parent e86b393c
Pipeline #681 failed with stage
in 35 seconds
......@@ -22,4 +22,5 @@ molecule:
- shell
script:
- pip install docker molecule
- ansible --version
- molecule test
......@@ -9,10 +9,11 @@ lint:
config-file: molecule/default/yaml-lint.yml
platforms:
- name: instance
image: geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1804}-ansible
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1804}-ansible"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rof
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
pre_build_image: true
provisioner:
......
......@@ -4,26 +4,18 @@
become: true
vars:
pip_package: python-pip
pip_install_packages:
- name: docker
networks:
- name: network-1
containers:
- name: hello-1
image: "hello-world"
state: started
restart_policy: always
networks:
- name: network-1
- name: hello-2
image: "hello-world"
state: started
restart_policy: always
networks:
- name: network-1
roles:
- geerlingguy.pip
......
......@@ -58,7 +58,7 @@
memory_swappiness: '{{ item.memory_swappiness | default(omit) }}'
network_mode: '{{ item.network_mode | default(omit) }}'
networks: '{{ item.networks | default(omit) }}'
networks_cli_compatible: '{{ item.networks_cli_compatible | default(omit) }}'
networks_cli_compatible: '{{ item.networks_cli_compatible | default("yes") }}'
oom_killer: '{{ item.oom_killer | default(omit) }}'
oom_score_adj: '{{ item.oom_score_adj | default(omit) }}'
output_logs: '{{ item.output_logs | default("no") }}'
......@@ -97,6 +97,5 @@
volumes: '{{ item.volumes | default(omit) }}'
volumes_from: '{{ item.volumes_from | default(omit) }}'
working_dir: '{{ item.working_dir | default(omit) }}'
no_log: true
loop: "{{ containers }}"
when: containers is defined
......@@ -27,6 +27,5 @@
tls: '{{ item.tls | default("no") }}'
tls_hostname: '{{ item.tls_hostname | default("localhost") }}'
validate_certs: '{{ item.validate_certs | default("no") }}'
no_log: true
loop: "{{ networks }}"
when: networks is defined
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment