summaryrefslogtreecommitdiffstats
path: root/ansible/roles
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-05-09 11:53:14 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-05-09 12:23:39 +0200
commitce961a3e63e15658a10c4a9af7c63f5f5b119120 (patch)
tree81c35b52309f3f2dff57b16a6517892a66dc9a93 /ansible/roles
parent029b36f9f0faedc18b032ebb8c598118ff80f67b (diff)
Don't set 'container' env in Molecule containers
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>
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/certificates/handlers/main.yml2
-rw-r--r--ansible/roles/certificates/molecule/default/molecule.yml4
-rw-r--r--ansible/roles/certificates/tasks/upload_root_ca.yml2
-rw-r--r--ansible/roles/docker/molecule/default/molecule.yml2
-rw-r--r--ansible/roles/rancher/molecule/default/molecule.yml4
5 files changed, 2 insertions, 12 deletions
diff --git a/ansible/roles/certificates/handlers/main.yml b/ansible/roles/certificates/handlers/main.yml
index b2b81223..579b5228 100644
--- a/ansible/roles/certificates/handlers/main.yml
+++ b/ansible/roles/certificates/handlers/main.yml
@@ -1,5 +1,5 @@
---
- 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
diff --git a/ansible/roles/certificates/molecule/default/molecule.yml b/ansible/roles/certificates/molecule/default/molecule.yml
index 50c862b7..a9e87cb5 100644
--- a/ansible/roles/certificates/molecule/default/molecule.yml
+++ b/ansible/roles/certificates/molecule/default/molecule.yml
@@ -11,8 +11,6 @@ platforms:
pre_build_image: true
privileged: true
command: ${MOLECULE_DOCKER_COMMAND:-""}
- env:
- container: docker
groups:
- infrastructure
@@ -21,8 +19,6 @@ platforms:
pre_build_image: true
privileged: true
command: ${MOLECULE_DOCKER_COMMAND:-""}
- env:
- container: docker
groups:
- kubernetes
provisioner:
diff --git a/ansible/roles/certificates/tasks/upload_root_ca.yml b/ansible/roles/certificates/tasks/upload_root_ca.yml
index b918187d..df50b693 100644
--- a/ansible/roles/certificates/tasks/upload_root_ca.yml
+++ b/ansible/roles/certificates/tasks/upload_root_ca.yml
@@ -3,5 +3,5 @@
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
diff --git a/ansible/roles/docker/molecule/default/molecule.yml b/ansible/roles/docker/molecule/default/molecule.yml
index 7754d273..d1f67d75 100644
--- a/ansible/roles/docker/molecule/default/molecule.yml
+++ b/ansible/roles/docker/molecule/default/molecule.yml
@@ -13,8 +13,6 @@ platforms:
command: ${MOLECULE_DOCKER_COMMAND:-""}
groups:
- infrastructure
- env:
- container: docker
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /dev:/dev:ro
diff --git a/ansible/roles/rancher/molecule/default/molecule.yml b/ansible/roles/rancher/molecule/default/molecule.yml
index e6152d55..b21325d4 100644
--- a/ansible/roles/rancher/molecule/default/molecule.yml
+++ b/ansible/roles/rancher/molecule/default/molecule.yml
@@ -12,8 +12,6 @@ platforms:
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
@@ -28,8 +26,6 @@ platforms:
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