diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-26 16:03:47 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-26 16:06:13 +0100 |
commit | 676591091ff3c154193213b26103c694f1a5f1be (patch) | |
tree | 12bce87cd541ace6b55fd1cd83a1c73dc527cb2c /tutorials/vFWDT/playbooks | |
parent | 314c0c1e45bc6a4c1ae0e7c030ebbf51b80abb35 (diff) |
Fix indentation issues within YAMLs
Fixes applied as reported by yamllint.
Change-Id: I5320d49799ecdd3ffbc8f9fbb8617554a709c247
Issue-ID: INT-1482
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'tutorials/vFWDT/playbooks')
-rw-r--r-- | tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetraffic/site.yml | 76 | ||||
-rw-r--r-- | tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml | 64 |
2 files changed, 70 insertions, 70 deletions
diff --git a/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetraffic/site.yml b/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetraffic/site.yml index 14de1646..90b34974 100644 --- a/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetraffic/site.yml +++ b/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetraffic/site.yml @@ -40,43 +40,43 @@ set_fact: vserver2_interfaces: "{{destinations[0].vservers[1]['l-interfaces'] | list}}" - block: - - name: length interfaces vserver1 - set_fact: - length1: "{{ vserver1_interfaces |length }}" - - name: length interfaces vserver2 - set_fact: - length2: "{{ vserver2_interfaces |length }}" + - name: length interfaces vserver1 + set_fact: + length1: "{{ vserver1_interfaces |length }}" + - name: length interfaces vserver2 + set_fact: + length2: "{{ vserver2_interfaces |length }}" - block: - - name: adress 1 vserver - set_fact: - sink_addresses: - - "{{destinations[0].vservers[0]['l-interfaces'][0]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][1]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][2]['ipv4-addresses'][0]}}" - - name: adress 2 vserver - set_fact: - fw_addresses: - - "{{destinations[0].vservers[1]['l-interfaces'][0]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][1]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][2]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][3]['ipv4-addresses'][0]}}" + - name: adress 1 vserver + set_fact: + sink_addresses: + - "{{destinations[0].vservers[0]['l-interfaces'][0]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][1]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][2]['ipv4-addresses'][0]}}" + - name: adress 2 vserver + set_fact: + fw_addresses: + - "{{destinations[0].vservers[1]['l-interfaces'][0]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][1]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][2]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][3]['ipv4-addresses'][0]}}" when: - length1 == "3" - length2 == "4" - block: - - name: adress 1 vserver - set_fact: - fw_addresses: - - "{{destinations[0].vservers[0]['l-interfaces'][0]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][1]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][2]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][3]['ipv4-addresses'][0]}}" - - name: adress 2 vserver - set_fact: - sink_addresses: - - "{{destinations[0].vservers[1]['l-interfaces'][0]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][1]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][2]['ipv4-addresses'][0]}}" + - name: adress 1 vserver + set_fact: + fw_addresses: + - "{{destinations[0].vservers[0]['l-interfaces'][0]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][1]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][2]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][3]['ipv4-addresses'][0]}}" + - name: adress 2 vserver + set_fact: + sink_addresses: + - "{{destinations[0].vservers[1]['l-interfaces'][0]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][1]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][2]['ipv4-addresses'][0]}}" when: - length1 == "4" - length2 == "3" @@ -122,12 +122,12 @@ - debug: var=fwIp - debug: var=sinkIp - block: - - name: get new FW IP - set_fact: - fwIp: "{{fwIp.stdout}}" - - name: get new SINK IP - set_fact: - sinkIp: "{{sinkIp.stdout}}" + - name: get new FW IP + set_fact: + fwIp: "{{fwIp.stdout}}" + - name: get new SINK IP + set_fact: + sinkIp: "{{sinkIp.stdout}}" - debug: var=pkgIp.stdout - debug: var=oldFwIp.stdout - debug: var=oldSinkIp.stdout diff --git a/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml b/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml index 665619ab..36e36249 100644 --- a/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml +++ b/tutorials/vFWDT/playbooks/vpgn/latest/ansible/distributetrafficcheck/site.yml @@ -28,43 +28,43 @@ set_fact: vserver2_interfaces: "{{destinations[0].vservers[1]['l-interfaces'] | list}}" - block: - - name: length interfaces vserver1 - set_fact: - length1: "{{ vserver1_interfaces |length }}" - - name: length interfaces vserver2 - set_fact: - length2: "{{ vserver2_interfaces |length }}" + - name: length interfaces vserver1 + set_fact: + length1: "{{ vserver1_interfaces |length }}" + - name: length interfaces vserver2 + set_fact: + length2: "{{ vserver2_interfaces |length }}" - block: - - name: adress 1 vserver - set_fact: - sink_addresses: - - "{{destinations[0].vservers[0]['l-interfaces'][0]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][1]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][2]['ipv4-addresses'][0]}}" - - name: adress 2 vserver - set_fact: - fw_addresses: - - "{{destinations[0].vservers[1]['l-interfaces'][0]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][1]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][2]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][3]['ipv4-addresses'][0]}}" + - name: adress 1 vserver + set_fact: + sink_addresses: + - "{{destinations[0].vservers[0]['l-interfaces'][0]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][1]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][2]['ipv4-addresses'][0]}}" + - name: adress 2 vserver + set_fact: + fw_addresses: + - "{{destinations[0].vservers[1]['l-interfaces'][0]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][1]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][2]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][3]['ipv4-addresses'][0]}}" when: - length1 == "3" - length2 == "4" - block: - - name: adress 1 vserver - set_fact: - fw_addresses: - - "{{destinations[0].vservers[0]['l-interfaces'][0]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][1]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][2]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[0]['l-interfaces'][3]['ipv4-addresses'][0]}}" - - name: adress 2 vserver - set_fact: - sink_addresses: - - "{{destinations[0].vservers[1]['l-interfaces'][0]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][1]['ipv4-addresses'][0]}}" - - "{{destinations[0].vservers[1]['l-interfaces'][2]['ipv4-addresses'][0]}}" + - name: adress 1 vserver + set_fact: + fw_addresses: + - "{{destinations[0].vservers[0]['l-interfaces'][0]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][1]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][2]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[0]['l-interfaces'][3]['ipv4-addresses'][0]}}" + - name: adress 2 vserver + set_fact: + sink_addresses: + - "{{destinations[0].vservers[1]['l-interfaces'][0]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][1]['ipv4-addresses'][0]}}" + - "{{destinations[0].vservers[1]['l-interfaces'][2]['ipv4-addresses'][0]}}" when: - length1 == "4" - length2 == "3" |