Update playbooks_filters.rst (#74242)

##### SUMMARY
Make the `random` filter description more clear.
This commit is contained in:
yuri 2021-04-20 17:59:16 +02:00 committed by GitHub
parent 5e5bfa8116
commit 5f391a72ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -854,7 +854,7 @@ To get a random item from a list::
"{{ ['a','b','c'] | random }}" "{{ ['a','b','c'] | random }}"
# => 'c' # => 'c'
To get a random number between 0 and a specified number:: To get a random number between 0 (inclusive) and a specified integer (exclusive)::
"{{ 60 | random }} * * * * root /script/from/cron" "{{ 60 | random }} * * * * root /script/from/cron"
# => '21 * * * * root /script/from/cron' # => '21 * * * * root /script/from/cron'