This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [0;34mUsing /etc/ansible/ansible.cfg as config file[0m | |
| [1;35m[WARNING]: running playbook inside collection[0m | |
| [1;35mansible.automation_platform_installer[0m | |
| [1;35m[WARNING]: Could not match supplied host pattern, ignoring: tower[0m | |
| [1;35m[WARNING]: Could not match supplied host pattern, ignoring: instance_group_*[0m | |
| PLAY [tower:automationcontroller:automationhub:database:instance_group_*] ****** | |
| TASK [ansible.automation_platform_installer.check_config_static : Ensure expected variables are defined] *** | |
| [0;36mskipping: [ansible-2] => (item=tower_package_name) => {"ansible_loop_var": "item", "changed": false, "item": "tower_package_name", "skip_reason": "Conditional result was False"}[0m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CLI done to configure and then check output in YAML with ansible, then revert to send actual request: | |
| developer@ncs(config)# services nso-snmp mytest_ro123 device dist-rtr01 | |
| developer@ncs(config-nso-snmp-mytest_ro123)# commit | |
| Commit complete. | |
| developer@ncs(config-nso-snmp-mytest_ro123)# no services nso-snmp mytest_ro123 device dist-rtr01 | |
| developer@ncs(config-nso-snmp-mytest_ro123)# commit | |
| Commit complete. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WARNING: Tried to load AngularJS more than once. vendor.3f514eed56e39e76c4f5.js:219:306857 | |
| WARNING: Tried to load AngularJS more than once. vendor.3f514eed56e39e76c4f5.js:244:306857 | |
| TypeError: "config is undefined" | |
| issuePendoIdentity https://student1.linux-automation.rhdemo.io/static/js/app.15b5283a122e3c07b48a.js:29 | |
| removeConfigReady https://student1.linux-automation.rhdemo.io/static/js/app.15b5283a122e3c07b48a.js:29 | |
| processQueue https://student1.linux-automation.rhdemo.io/static/js/vendor.3f514eed56e39e76c4f5.js:201 | |
| scheduleProcessQueue https://student1.linux-automation.rhdemo.io/static/js/vendor.3f514eed56e39e76c4f5.js:201 | |
| $digest https://student1.linux-automation.rhdemo.io/static/js/vendor.3f514eed56e39e76c4f5.js:201 | |
| $apply https://student1.linux-automation.rhdemo.io/static/js/vendor.3f514eed56e39e76c4f5.js:201 | |
| done https://student1.linux-automation.rhdemo.io/static/js/vendor.3f514eed56e39e76c4f5.js:201 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # HTTP://docs.ansible.com/ansible-tower/latest/html/administration/init_script.html | |
| - name: Move certs | |
| hosts: localhost | |
| become: yes | |
| gather_facts: no | |
| tasks: | |
| - name: TURN OFF TOWER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| virtualenv --system-site-packages creates the venv with the system packages already in place |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Ansible role test shim. | |
| # | |
| # Usage: [OPTIONS] ./tests/test.sh | |
| # - distro: a supported Docker distro version (default = "centos7") | |
| # - playbook: a playbook in the tests directory (default = "test.yml") | |
| # - role_dir: the directory where the role exists (default = $PWD) | |
| # - cleanup: whether to remove the Docker container (default = true) | |
| # - container_id: the --name to set for the container (default = timestamp) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TASK [connectivity_test : Wait 400 seconds (using wait_for_connection)] *********************************************************** | |
| task path: /working/linklight/provisioner/roles/connectivity_test/tasks/main.yml:1 | |
| wait_for_connection: attempting ping module test | |
| <52.23.216.23> ESTABLISH SSH CONNECTION FOR USER: ec2-user | |
| <52.23.216.23> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/working/linklight/provisioner/ajay-linklight/ajay-linklight-private.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ec2-user -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/9c11b3eb1e 52.23.216.23 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"'' | |
| wait_for_connection: attempting ping module test | |
| <35.173.255.200> ESTABLISH SSH CONNECTION FOR USER: ec2-user | |
| <35.173.255.200> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@NCC-1701:/mnt/tempdisk# cat nxos_config.txt | |
| !Command: show running-config | |
| !Time: Tue Jan 5 17:46:51 2016 | |
| version 7.0(3)I3(1) | |
| vdc switch id 1 | |
| limit-resource vlan minimum 16 maximum 4094 | |
| limit-resource vrf minimum 2 maximum 4096 | |
| limit-resource port-channel minimum 0 maximum 511 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.define "n9kv1" do |n9kv1| | |
| n9kv1.vm.box = "nxos7" | |
| n9kv1.ssh.insert_key = false | |
| n9kv1.vm.boot_timeout = 180 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Method 1 - Using libnotify's notify-send from the shell | |
| (defun test (title message) | |
| (interactive) | |
| (shell-command (format "notify-send \"%s\" \"%s\"" title message))) | |
| (test "Test" "Something") | |
| ;; Method 2 - Using the emacs alert.el package, cleaner | |
| (require 'alert) | |
| (setq alert-default-style 'libnotify) | |
| (alert "hello") |
NewerOlder