junos_commit - Execute commit on device

Author:Rick Sherman, Juniper Networks

Synopsis

New in version 1.2.0.

Execute a Commit on a device running Junos independently of loading a configuration

Options

parameter required default choices comments
comment no None
    Provide a comment to the commit of the configuration
    confirm no None
      Provide a confirm in minutes to the commit of the configuration
      host yes
        Set to {{ inventory_hostname }}
        logfile no None
          Path on the local server where the progress status is logged for debugging purposes
          mode no None
            mode of console connection (telnet/serial). If mode is not provided SSH connection is used.
            passwd no assumes ssh-key active
              Login password
              port no 830
                port number to use when connecting to the device
                timeout no 0
                  Extend the NETCONF RPC timeout beyond the default value of 30 seconds. Set this value to accommodate commits that might take longer than the default timeout interval.
                  user no $USER
                    Login username

                    Note

                    Requires junos-eznc >= 1.2.2

                    Examples


                    - junos_commit:
                       host: "{{ inventory_hostname }}"
                       logfile=changes.log
                       comment="Non load commit"
                    
                    # over console server connection using PyEZ >= 2.0
                    - name: junos commit
                      junos_commit:
                        host={{ inventory_hostname }}
                        port=7016
                        mode='telnet'
                        comment="commit with console connection via PyEZ"