Fixed the tox errors for ansible-lint, shellcheck, yamllint
Change-Id: Ibf024b44b2a82c7248877fbc2f022b7fd15e882a
diff --git a/playbooks/roles/package/defaults/main.yaml b/playbooks/roles/package/defaults/main.yaml
index 4fee1ec..4855b84 100644
--- a/playbooks/roles/package/defaults/main.yaml
+++ b/playbooks/roles/package/defaults/main.yaml
@@ -36,12 +36,11 @@
repo: "https://gerrit.nordix.org/infra/test.git"
dest: "test"
version: "{{ lookup('env', 'NORDIX_TEST_VERSION') | default('master', true) }}"
- refspec: "{{ lookup('env', 'NORDIX_TEST_REFSPEC') | default('master', true) }}"
+ refspec: "{{ lookup('env', 'NORDIX_TEST_REFSPEC') | default('master', true) }}"
test-onap:
repo: "https://gerrit.nordix.org/infra/test/onap"
- dest: "test-onap"
+ dest: "test-onap"
version: "{{ lookup('env', 'TEST_STACK_VERSION') | default('master', true) }}"
- refspec: "{{ lookup('env', 'STACK_TEST_REFSPEC') | default(omit) }}"
-
-# placeholder for other images
+ refspec: "{{ lookup('env', 'STACK_TEST_REFSPEC') | default(omit) }}"
+# placeholder for other images
diff --git a/playbooks/roles/package/tasks/containers.yaml b/playbooks/roles/package/tasks/containers.yaml
index 7352f03..f19491f 100644
--- a/playbooks/roles/package/tasks/containers.yaml
+++ b/playbooks/roles/package/tasks/containers.yaml
@@ -28,14 +28,14 @@
# NOTE (eprasad): docker_image module doesn't seem to respect become so falling back to command module
- name: Pull test stack container images
- command: "docker pull {{ xtesting_image_repo}}/{{ item.value.image_name }}@sha256:{{ item.value.image_version }}"
+ command: "docker pull {{ xtesting_image_repo }}/{{ item.value.image_name }}@sha256:{{ item.value.image_version }}"
with_dict: "{{ framework[testfw] }}"
become: true
changed_when: false
- name: Add tag to the stack images
command: |-
- docker tag "{{ xtesting_image_repo}}/{{ item.value.image_name }}@sha256:{{ item.value.image_version }}"
+ docker tag "{{ xtesting_image_repo }}/{{ item.value.image_name }}@sha256:{{ item.value.image_version }}"
"onap/{{ item.value.image_name }}:{{ test_stack_version }}"
with_dict: "{{ framework[testfw] }}"
become: true
diff --git a/playbooks/roles/package/tasks/main.yaml b/playbooks/roles/package/tasks/main.yaml
index 9df4c7b..d2d4d86 100644
--- a/playbooks/roles/package/tasks/main.yaml
+++ b/playbooks/roles/package/tasks/main.yaml
@@ -17,7 +17,7 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
-#- name: Prepare packaging
+# - name: Prepare packaging
# include_tasks: prepare-packaging.yaml
- name: Create folder to store dependencies for offline testing