mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00: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:
committed by
GitHub
parent
bc09d05917
commit
92b0cd8e0e
@@ -231,6 +231,26 @@ backup_path:
|
||||
returned: when backup is yes
|
||||
type: str
|
||||
sample: /playbooks/ansible/backup/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: junos01_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/junos01_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
|
||||
import json
|
||||
|
||||
Reference in New Issue
Block a user