https://github.com/teknoir/ansible-notebook
A notebook demonstrating how to use ansible maintaining devices in your namespace
https://github.com/teknoir/ansible-notebook
Last synced: 7 months ago
JSON representation
A notebook demonstrating how to use ansible maintaining devices in your namespace
- Host: GitHub
- URL: https://github.com/teknoir/ansible-notebook
- Owner: teknoir
- Created: 2021-06-10T10:58:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T08:58:26.000Z (about 3 years ago)
- Last Synced: 2025-01-30T08:43:02.296Z (8 months ago)
- Language: Python
- Size: 74.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Teknoir Ansible Notebook Demo
Notebooks runs in namespaces, the scope of devices to control is defined by the namespace.## Limitations
* Namespaces become groups, we do not support namespaces with dashes(-).
* Dashes(-) will be replaced with underscores(_)
* Labels become groups as follows:
* A label consists of key and value
* Groups are contructed concatinating key and value separated by underscore(_)
* I.e. key_value
* The Plugin do not automatically open or close reverse-tunnels## Requirements
* corkscrew
* rsync## List devices
```bash
ansible -i inventory.py --list-hosts all
```## Patch devices
```bash
ansible-playbook -v -i inventory.py playbook.yaml --limit my-device-01,my-device-02
```