Skip to content
Snippets Groups Projects
Commit a2fc7335 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

test

parent 10bf0f15
No related branches found
No related tags found
No related merge requests found
Pipeline #94913 failed
[defaults]
library = ./modules
host_key_checking = False
[netconf_connection]
ssh_config = False
[junos]
my-junos ansible_host=62.40.119.4 ansible_user=gap-test ansible_password=concept_gear_ESSENTIAL93 ansible_connection=netconf ansible_network_os=juniper.junos.junos
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "community",
"supported_transports": ["netconf"],
}
# (c) 2017, Ansible by Red Hat, inc # (c) 2017, Ansible by Red Hat, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
......
- name: Test private-candidate junos_config
hosts: junos
gather_facts: no
collections:
- geant.gap_ansible # <-- your locally installed collection
tasks:
- name: Open private candidate, push a change and commit
geant.gap_ansible.junos_config: # <-- module from geant.gap_ansible
lines:
- set system services ssh root-login allow
config_mode: private
register: result
- debug:
var: result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment