New in version 2.1.
Deprecated in 2.2. Use junos_config instead.
- junos-eznc
parameter | required | default | choices | comments | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
action (added in 2.2) |
no | merge |
|
The action argument specifies how the module will apply changes. | |||||||||||||||||||||||||||||||||||
backup |
no |
|
When this argument is configured true, the module will backup the configuration from the node prior to making any changes. The backup file will be written to backup_{{ hostname }} in the root of the playbook directory. | ||||||||||||||||||||||||||||||||||||
comment |
no | configured by junos_template | The comment argument specifies a text string to be used when committing the configuration. If the confirm argument is set to False, this argument is silently ignored. | ||||||||||||||||||||||||||||||||||||
config_format |
no |
|
The format argument specifies the format of the configuration template specified in src . If the format argument is not specified, the module will attempt to infer the configuration format based of file extension. Files that end in xml will set the format to xml. Files that end in set will set the format to set and all other files will default the format to text. | ||||||||||||||||||||||||||||||||||||
confirm |
no | The confirm argument will configure a time out value for the commit to be confirmed before it is automatically rolled back. If the confirm argument is set to False, this argument is silently ignored. If the value for this argument is set to 0, the commit is confirmed immediately. | |||||||||||||||||||||||||||||||||||||
provider |
no | A dict object containing connection details. | |||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
src |
yes | The path to the config source. The source can be either a file with config or a template that will be merged during runtime. By default the task will search for the source file in role or playbook root folder in templates directory. |
- junos_template: src: config.j2 comment: update system config - name: replace config hierarchy junos_template: src: config.j2 action: replace - name: overwrite the config junos_template: src: config.j2 action: overwrite
Note
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.