From aeec51ac540d0cbe9846e8f09b9e00e3cc89f0a0 Mon Sep 17 00:00:00 2001 From: kpinc Date: Tue, 29 Aug 2023 05:23:41 -0500 Subject: [PATCH] Improve ansible.builtin.copy directory_mode parameter docs (#81127) * Improve ansible.builtin.copy directory_mode parameter docs --- lib/ansible/modules/copy.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/copy.py b/lib/ansible/modules/copy.py index af3ab4a2b53..61c3ba72d14 100644 --- a/lib/ansible/modules/copy.py +++ b/lib/ansible/modules/copy.py @@ -79,9 +79,10 @@ options: See CVE-2020-1736 for further details. directory_mode: description: - - When doing a recursive copy set the mode for the directories. - - If this is not set we will use the system defaults. - - The mode is only set on directories which are newly created, and will not affect those that already existed. + - Set the access permissions of newly created directories to the given mode. + Permissions on existing directories do not change. + - See C(mode) for the syntax of accepted values. + - The target system's defaults determine permissions when this parameter is not set. type: raw version_added: '1.5' remote_src: