From 6305603f8cb54c28e93a7e4bfad265723638299c Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Thu, 26 Mar 2020 14:22:02 +0100 Subject: Fix spacing issues in YAML files in tutorials/ Fixes applied as reported by yamllint. Change-Id: I6f5ddce18c7a29bbbf3c973d1fd34ba308ec5616 Issue-ID: INT-1482 Signed-off-by: Bartek Grzybowski --- .../vfw-sink/latest/ansible/distributetrafficcheck/site.yml | 5 ++--- .../playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml | 4 ++-- .../playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml | 4 ++-- .../playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml | 8 ++++---- 4 files changed, 10 insertions(+), 11 deletions(-) (limited to 'tutorials/vFWDT/playbooks/vfw-sink/latest') diff --git a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/distributetrafficcheck/site.yml b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/distributetrafficcheck/site.yml index 04c80ea1..5eb72143 100644 --- a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/distributetrafficcheck/site.yml +++ b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/distributetrafficcheck/site.yml @@ -22,7 +22,7 @@ register: fw_ppnet_iface - name: Traffic check if trafficpresence is TRUE - when: trafficpresence == true + when: trafficpresence == true block: - name: Traffic check if trafficpresence is TRUE raw: | @@ -59,7 +59,7 @@ when: traffic_check.rc == 0 - name: Traffic check if trafficpresence is FALSE - when: trafficpresence == false + when: trafficpresence == false block: - name: Traffic check trafficpresence is FALSE raw: | @@ -92,4 +92,3 @@ msg: 'traffic present {{ traffic_check.stdout_lines }} ' when: traffic_check.rc == 1 failed_when: traffic_check.rc == 1 - diff --git a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml index 6d6d51b6..559420a8 100755 --- a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml +++ b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml @@ -4,9 +4,9 @@ remote_user: ubuntu tasks: - debug: var="new_software_version" - failed_when: new_software_version is not defined + failed_when: new_software_version is not defined - debug: var="existing_software_version" - failed_when: existing_software_version is not defined + failed_when: existing_software_version is not defined - name: Read OLD Software Version shell: cat /opt/config/version.txt register: old_version diff --git a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml index 05da22a7..2ad56da7 100755 --- a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml +++ b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradeprecheck/site.yml @@ -4,9 +4,9 @@ remote_user: ubuntu tasks: - debug: var="new_software_version" - failed_when: new_software_version is not defined + failed_when: new_software_version is not defined - debug: var="existing_software_version" - failed_when: existing_software_version is not defined + failed_when: existing_software_version is not defined - name: Read OLD Software Version shell: cat /opt/config/version.txt register: old_version diff --git a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml index 1a11f082..52ddd1bf 100755 --- a/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml +++ b/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradesoftware/site.yml @@ -4,9 +4,9 @@ remote_user: ubuntu tasks: - debug: var="new_software_version" - failed_when: new_software_version is not defined + failed_when: new_software_version is not defined - debug: var="existing_software_version" - failed_when: existing_software_version is not defined + failed_when: existing_software_version is not defined - name: Read OLD Software Version shell: cat /opt/config/version.txt register: old_version @@ -16,8 +16,8 @@ - name: Update Software shell: apt-get -y --force-yes -u update args: - warn: no - - name: Upgrade Version + warn: no + - name: Upgrade Version shell: echo {{new_software_version}} > /opt/config/version.txt - debug: msg: Software version has been upgraded to {{new_software_version}} -- cgit 1.2.3-korg