mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #12444 from knakayama/bugfix/update-docs
Update docs (playbooks_loops.rst, playbooks_filters.rst)
This commit is contained in:
commit
6292520c45
2 changed files with 4 additions and 4 deletions
|
@ -450,11 +450,11 @@ To separate the windows drive letter from the rest of a file path (new in versio
|
||||||
|
|
||||||
To get only the windows drive letter::
|
To get only the windows drive letter::
|
||||||
|
|
||||||
{{ path | win_splitdrive | first }}
|
{{ path | win_splitdrive | first }}
|
||||||
|
|
||||||
To get the rest of the path without the drive letter::
|
To get the rest of the path without the drive letter::
|
||||||
|
|
||||||
{{ path | win_splitdrive | last }}
|
{{ path | win_splitdrive | last }}
|
||||||
|
|
||||||
To get the directory from a path::
|
To get the directory from a path::
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ It might happen like so::
|
||||||
Given the mysql hosts and privs subkey lists, you can also iterate over a list in a nested subkey::
|
Given the mysql hosts and privs subkey lists, you can also iterate over a list in a nested subkey::
|
||||||
|
|
||||||
- name: Setup MySQL users
|
- name: Setup MySQL users
|
||||||
mysql_user: name={{ item.0.user }} password={{ item.0.mysql.password }} host={{ item.1 }} priv={{ item.0.mysql.privs | join('/') }}
|
mysql_user: name={{ item.0.name }} password={{ item.0.mysql.password }} host={{ item.1 }} priv={{ item.0.mysql.privs | join('/') }}
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- users
|
- users
|
||||||
- mysql.hosts
|
- mysql.hosts
|
||||||
|
|
Loading…
Reference in a new issue