mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Add more return values to *_config modules (#50702)
* Add more return values to *_config modules Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Add more rv Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Exclude from cli_config docs for now Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Add new rv docs for junos_config Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Fix CI errors Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Support date time for configurable backup path Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Change logic based on configurable path Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Remove unwanted import Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Fix docs Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Add filename rv Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Change dosc filename rv Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Make new rv code more readable Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
parent
bc09d05917
commit
92b0cd8e0e
7 changed files with 131 additions and 1 deletions
|
@ -161,6 +161,26 @@ backup_path:
|
|||
returned: when backup is yes
|
||||
type: str
|
||||
sample: /playbooks/ansible/backup/vyos_config.2016-07-16@22:28:34
|
||||
filename:
|
||||
description: The name of the backup file
|
||||
returned: when backup is yes and filename is not specified in backup options
|
||||
type: str
|
||||
sample: vyos_config.2016-07-16@22:28:34
|
||||
shortname:
|
||||
description: The full path to the backup file excluding the timestamp
|
||||
returned: when backup is yes and filename is not specified in backup options
|
||||
type: str
|
||||
sample: /playbooks/ansible/backup/vyos_config
|
||||
date:
|
||||
description: The date extracted from the backup file name
|
||||
returned: when backup is yes
|
||||
type: str
|
||||
sample: "2016-07-16"
|
||||
time:
|
||||
description: The time extracted from the backup file name
|
||||
returned: when backup is yes
|
||||
type: str
|
||||
sample: "22:28:34"
|
||||
"""
|
||||
import re
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue