Remove trailing spaces from lines in YAML (#80032)

pull/80033/head
Matt Clay 3 years ago committed by GitHub
parent a4248a63aa
commit 21fc699b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,3 @@
bugfixes: bugfixes:
- file - touch action in check mode was always returning ok. Fix now evaluates the different conditions and - file - touch action in check mode was always returning ok. Fix now evaluates the different conditions and
returns the appropriate changed status. (https://github.com/ansible/ansible/issues/79360) returns the appropriate changed status. (https://github.com/ansible/ansible/issues/79360)

@ -1,5 +1,5 @@
major_changes: major_changes:
- ansible-test - Docker and Podman are now supported on hosts with cgroup v2 unified. - ansible-test - Docker and Podman are now supported on hosts with cgroup v2 unified.
Previously only cgroup v1 and cgroup v2 hybrid were supported. Previously only cgroup v1 and cgroup v2 hybrid were supported.
- ansible-test - Docker Desktop on WSL2 is now supported (additional configuration required). - ansible-test - Docker Desktop on WSL2 is now supported (additional configuration required).
- ansible-test - Podman on WSL2 is now supported. - ansible-test - Podman on WSL2 is now supported.

@ -5,5 +5,5 @@ bugfixes:
(Resolves issue https://github.com/ansible/ansible/issues/75079) (Resolves issue https://github.com/ansible/ansible/issues/75079)
breaking_changes: breaking_changes:
- ansible-test - Integration tests which depend on specific file permissions when running in an ansible-test managed - ansible-test - Integration tests which depend on specific file permissions when running in an ansible-test managed
host environment may require changes. Tests that require permissions other than ``755`` or ``644`` host environment may require changes. Tests that require permissions other than ``755`` or ``644``
may need to be updated to set the necessary permissions as part of the test run. may need to be updated to set the necessary permissions as part of the test run.

@ -1,4 +1,4 @@
minor_changes: minor_changes:
- >- - >-
ansible-test pslint - Upgrade PSScriptAnalyzer to ``1.21.0`` which enables the ``AvoidMultipleTypeAttributes``, ansible-test pslint - Upgrade PSScriptAnalyzer to ``1.21.0`` which enables the ``AvoidMultipleTypeAttributes``,
``AvoidSemicolonsAsLineTerminators``, and ``AvoidUsingBrokenHashAlgorithms`` rules ``AvoidSemicolonsAsLineTerminators``, and ``AvoidUsingBrokenHashAlgorithms`` rules

@ -7,7 +7,7 @@ DOCUMENTATION:
- Base64 decoding function. - Base64 decoding function.
- The return value is a string. - The return value is a string.
- Trying to store a binary blob in a string most likely corrupts the binary. To base64 decode a binary blob, - Trying to store a binary blob in a string most likely corrupts the binary. To base64 decode a binary blob,
use the ``base64`` command and pipe the encoded data through standard input. use the ``base64`` command and pipe the encoded data through standard input.
For example, in the ansible.builtin.shell`` module, ``cmd="base64 --decode > myfile.bin" stdin="{{ encoded }}"``. For example, in the ansible.builtin.shell`` module, ``cmd="base64 --decode > myfile.bin" stdin="{{ encoded }}"``.
positional: _input positional: _input
options: options:

@ -25,18 +25,18 @@ DOCUMENTATION:
# TODO: find docs for these # TODO: find docs for these
#allow_unicode: #allow_unicode:
# description: # description:
# type: bool # type: bool
# default: true # default: true
#default_flow_style #default_flow_style
#default_style #default_style
#canonical=None, #canonical=None,
#width=None, #width=None,
#line_break=None, #line_break=None,
#encoding=None, #encoding=None,
#explicit_start=None, #explicit_start=None,
#explicit_end=None, #explicit_end=None,
#version=None, #version=None,
#tags=None #tags=None
EXAMPLES: | EXAMPLES: |

@ -21,7 +21,7 @@
- import_tasks: 'apt_key_inline_data.yml' - import_tasks: 'apt_key_inline_data.yml'
when: ansible_distribution in ('Ubuntu', 'Debian') when: ansible_distribution in ('Ubuntu', 'Debian')
- import_tasks: 'file.yml' - import_tasks: 'file.yml'
when: ansible_distribution in ('Ubuntu', 'Debian') when: ansible_distribution in ('Ubuntu', 'Debian')

@ -11,8 +11,8 @@
ansible_become_user: "{{ become_test_config.user }}" ansible_become_user: "{{ become_test_config.user }}"
ansible_become_method: "{{ become_test_config.method }}" ansible_become_method: "{{ become_test_config.method }}"
ansible_become_password: "{{ become_test_config.password | default(None) }}" ansible_become_password: "{{ become_test_config.password | default(None) }}"
loop: "{{ loop: "{{
(become_methods | selectattr('skip', 'undefined') | list)+ (become_methods | selectattr('skip', 'undefined') | list)+
(become_methods | selectattr('skip', 'defined') | rejectattr('skip') | list) (become_methods | selectattr('skip', 'defined') | rejectattr('skip') | list)
}}" }}"
loop_control: loop_control:

@ -25,8 +25,8 @@
register: foo register: foo
- name: verify that the file was marked as changed in check mode - name: verify that the file was marked as changed in check mode
assert: assert:
that: that:
- "template_result is changed" - "template_result is changed"
- "not foo.stat.exists" - "not foo.stat.exists"
@ -44,7 +44,7 @@
check_mode: no check_mode: no
- name: verify that the file was not changed - name: verify that the file was not changed
assert: assert:
that: that:
- "checkmode_disabled is changed" - "checkmode_disabled is changed"
- "template_result2 is not changed" - "template_result2 is not changed"

@ -16,11 +16,11 @@
dest: "{{ tempdir.path }}/somelink" dest: "{{ tempdir.path }}/somelink"
state: link state: link
- stat: - stat:
path: "{{ tempdir.path }}/somelink" path: "{{ tempdir.path }}/somelink"
register: link register: link
- stat: - stat:
path: "{{ tempdir.path }}/somefile" path: "{{ tempdir.path }}/somefile"
register: file register: file
@ -32,12 +32,12 @@
- file: - file:
path: "{{ tempdir.path }}/somelink" path: "{{ tempdir.path }}/somelink"
mode: 0644 mode: 0644
- stat: - stat:
path: "{{ tempdir.path }}/somelink" path: "{{ tempdir.path }}/somelink"
register: link register: link
- stat: - stat:
path: "{{ tempdir.path }}/somefile" path: "{{ tempdir.path }}/somefile"
register: file register: file

@ -779,7 +779,7 @@
register: touch_result_in_check_mode_fails_not_existing_group register: touch_result_in_check_mode_fails_not_existing_group
- assert: - assert:
that: that:
- touch_result_in_check_mode_not_existing.changed - touch_result_in_check_mode_not_existing.changed
- touch_result_in_check_mode_preserve_access_time.changed - touch_result_in_check_mode_preserve_access_time.changed
- touch_result_in_check_mode_change_only_mode.changed - touch_result_in_check_mode_change_only_mode.changed

@ -22,7 +22,7 @@
register: response_failed register: response_failed
- name: Parse token from msg.txt - name: Parse token from msg.txt
set_fact: set_fact:
token: "{{ (response_failed['content'] | b64decode | from_json).token }}" token: "{{ (response_failed['content'] | b64decode | from_json).token }}"
- name: assert Test Bearer authorization is failed with netrc - name: assert Test Bearer authorization is failed with netrc
@ -48,7 +48,7 @@
register: response register: response
- name: Parse token from msg.txt - name: Parse token from msg.txt
set_fact: set_fact:
token: "{{ (response['content'] | b64decode | from_json).token }}" token: "{{ (response['content'] | b64decode | from_json).token }}"
- name: assert Test Bearer authorization is successfull with use_netrc=False - name: assert Test Bearer authorization is successfull with use_netrc=False

@ -99,7 +99,7 @@
# https://github.com/ansible/ansible/issues/78598 # https://github.com/ansible/ansible/issues/78598
# test removing nonexistent host key when the other keys exist for the host # test removing nonexistent host key when the other keys exist for the host
- name: remove different key - name: remove different key
known_hosts: known_hosts:
name: example.org name: example.org
key: "{{ example_org_ed25519_key }}" key: "{{ example_org_ed25519_key }}"
state: absent state: absent

@ -5,7 +5,7 @@
dir: files dir: files
tasks: tasks:
- file: path='{{ dir }}' state=directory - file: path='{{ dir }}' state=directory
- file: path='setvars.bat' state=touch # in current directory! - file: path='setvars.bat' state=touch # in current directory!
- file: path='{{ dir }}/{{ item }}' state=touch - file: path='{{ dir }}/{{ item }}' state=touch

@ -1,2 +1,2 @@
dependencies: dependencies:
- prepare_http_tests - prepare_http_tests

@ -18,7 +18,7 @@
that: that:
- "web_data.token.find('v=' ~ 'Zm9vOmJhcg==') == -1" - "web_data.token.find('v=' ~ 'Zm9vOmJhcg==') == -1"
fail_msg: "Was expecting 'foo:bar' in base64, but received: {{ web_data }}" fail_msg: "Was expecting 'foo:bar' in base64, but received: {{ web_data }}"
success_msg: "Expected Basic authentication even Bearer headers were sent" success_msg: "Expected Basic authentication even Bearer headers were sent"
- name: test Url lookup with use_netrc=False - name: test Url lookup with use_netrc=False
set_fact: set_fact:

@ -2,10 +2,10 @@
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
block: block:
- name: install fr language pack - name: install fr language pack
apt: apt:
name: language-pack-fr name: language-pack-fr
state: present state: present
- name: create our unarchive destination - name: create our unarchive destination
file: file:
path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz" path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"

@ -1,4 +1,4 @@
# test code # test code
# (c) 2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2014, Michael DeHaan <michael.dehaan@gmail.com>
# This file is part of Ansible # This file is part of Ansible
@ -22,7 +22,7 @@
output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}" output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
- name: deploy a template that will use variables at various levels - name: deploy a template that will use variables at various levels
template: src=foo.j2 dest={{output_dir}}/foo.templated template: src=foo.j2 dest={{output_dir}}/foo.templated
register: template_result register: template_result
- name: copy known good into place - name: copy known good into place
@ -33,9 +33,9 @@
register: diff_result register: diff_result
- name: verify templated file matches known good - name: verify templated file matches known good
assert: assert:
that: that:
- 'diff_result.stdout == ""' - 'diff_result.stdout == ""'
- name: check debug variable with same name as var content - name: check debug variable with same name as var content
debug: var=same_value_as_var_name_var debug: var=same_value_as_var_name_var

Loading…
Cancel
Save