From f717f14fe9d4d1e10b56dae2b5e6c9871691469f Mon Sep 17 00:00:00 2001 From: knakayama Date: Sun, 20 Sep 2015 22:48:07 +0900 Subject: [PATCH] Update docs (playbooks_loops.rst, playbooks_filters.rst) --- docsite/rst/playbooks_filters.rst | 6 +++--- docsite/rst/playbooks_loops.rst | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docsite/rst/playbooks_filters.rst b/docsite/rst/playbooks_filters.rst index 4c3c170567..696188140e 100644 --- a/docsite/rst/playbooks_filters.rst +++ b/docsite/rst/playbooks_filters.rst @@ -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:: - {{ path | win_splitdrive | first }} - + {{ path | win_splitdrive | first }} + 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:: diff --git a/docsite/rst/playbooks_loops.rst b/docsite/rst/playbooks_loops.rst index 5acc6ae630..a876fd0c72 100644 --- a/docsite/rst/playbooks_loops.rst +++ b/docsite/rst/playbooks_loops.rst @@ -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:: - 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: - users - mysql.hosts