mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update for preferred syntax (#15945)
This commit is contained in:
parent
b75895df9b
commit
070af51370
1 changed files with 2 additions and 2 deletions
|
@ -268,8 +268,8 @@ fields::
|
|||
|
||||
- name: add home dirs to the backup spooler
|
||||
file: path=/mnt/bkspool/{{ item }} src=/home/{{ item }} state=link
|
||||
with_items: home_dirs.stdout_lines
|
||||
# same as with_items: home_dirs.stdout.split()
|
||||
with_items: "{{ home_dirs.stdout_lines }}"
|
||||
# same as with_items: "{{ home_dirs.stdout.split() }}"
|
||||
|
||||
As shown previously, the registered variable's string contents are accessible with the 'stdout' value.
|
||||
You may check the registered variable's string contents for emptiness::
|
||||
|
|
Loading…
Reference in a new issue