This shows you the differences between two versions of the page.
| automation:ansible [2023/07/12 21:41] – jotasandoku | automation:ansible [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 87: | Line 87: | ||
| * -a : arguments | * -a : arguments | ||
| - | ansible all -i inventory -m setup # this collects facts | ||
| ansible all -i inventory -m setup # this collects facts | ansible all -i inventory -m setup # this collects facts | ||
| ansible -i hosts all -m ping --private-key / | ansible -i hosts all -m ping --private-key / | ||
| Line 461: | Line 460: | ||
| * Roles can be downloaded from galaxy as part of collections. | * Roles can be downloaded from galaxy as part of collections. | ||
| * We can also '' | * We can also '' | ||
| - | | + | |
| - | This is an example of a custom role: [[https:// | + | |
| ansible-galaxy role init < | ansible-galaxy role init < | ||
| - | __Junos specifics | + | ---- |
| + | |||
| + | __roles for Junos __ | ||
| \\ | \\ | ||
| * Roles (network engine role) act as wrappers. They allows us to use a yaml based parser (command_parser) instead of custom filters. This way, we make the code much shorter. | * Roles (network engine role) act as wrappers. They allows us to use a yaml based parser (command_parser) instead of custom filters. This way, we make the code much shorter. | ||
| Line 537: | Line 539: | ||
| * '' | * '' | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | |||
| + | ---- | ||
| + | __AWX__ | ||
| + | \\ | ||
| + | * Ansible Tower == AWS =~ ' | ||
| + | * {{ : | ||
| + | * **AWX uses k8s extensively** | ||
| + | Install minikube (ubuntu) with: | ||
| + | minikube start --cpus=4 --memory=6g --addons=ingress --vm-driver=docker | ||