Molecule role tests that use pre build images had
superfluous 'container' env variable declaration.
It's not needed as this env is already set in
Dockerfiles, for both: pre-built and custom built
images.
Change-Id: Iee9cc38919da894ee6cc6a2a5f1acc60d76865de
Issue-ID: OOM-1841
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
---
- name: Extract root certificate
command: /usr/bin/update-ca-trust extract
- changed_when: true # this handler is executed just when there is a new cert
+ changed_when: true # this handler is executed just when there is a new cert
notify: Restart Docker
pre_build_image: true
privileged: true
command: ${MOLECULE_DOCKER_COMMAND:-""}
- env:
- container: docker
groups:
- infrastructure
pre_build_image: true
privileged: true
command: ${MOLECULE_DOCKER_COMMAND:-""}
- env:
- container: docker
groups:
- kubernetes
provisioner:
copy:
src: "{{ certificates_local_dir }}/rootCA.crt"
dest: /etc/pki/ca-trust/source/anchors/
- notify: # handler is triggered just when file is changed
+ notify: # handler is triggered just when file is changed
- Extract root certificate
command: ${MOLECULE_DOCKER_COMMAND:-""}
groups:
- infrastructure
- env:
- container: docker
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /dev:/dev:ro
privileged: true
override_command: false
restart_policy: unless-stopped
- env:
- container: docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/rancher:/var/lib/rancher:ro
privileged: true
override_command: false
restart_policy: unless-stopped
- env:
- container: docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/rancher:/var/lib/rancher:ro