# ahmedmostafa1983/ci-workshops-fundamentals architecture

> Architecture diagram of the GitHub repository ahmedmostafa1983/ci-workshops-fundamentals, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ahmedmostafa1983/ci-workshops-fundamentals
- Repository: https://github.com/ahmedmostafa1983/ci-workshops-fundamentals

## Overview

This repository is a set of Ansible workshop demonstrations, including an MLAG deployment example and a separate Jinja-based network configuration example. The README identifies the workshop purpose but documents no runtime flow, and no source excerpts were provided. The dashed links show plausible relationships inferred from filenames and directory structure, not verified calls or configuration; the graph therefore avoids asserting detailed execution behavior.

Main entry points: [`jinjayaml/templates/full_config.j2`](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/full_config.j2) (Full config template), [`jinjayaml/playbooks/full_config.yml`](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/playbooks/full_config.yml) (Full config playbook), [`ansible/playbooks/deploy_mlag.yml`](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/playbooks/deploy_mlag.yml) (MLAG playbook), [`ansible/roles/mlag/tasks/main.yml`](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/roles/mlag/tasks/main.yml) (MLAG tasks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ansible_examples["Ansible examples"]
  node_ansible_inventory["Ansible inventory<br/>[inventory.yml]"]
  node_ansible_vars["Ansible variables"]
  node_banner_playbook["Banner playbook<br/>[deploy_banner.yml]"]
  node_hello_playbook["Hello world playbook<br/>[hello_world.yml]"]
end

subgraph group_mlag["MLAG deployment"]
  node_mlag_playbook["MLAG playbook<br/>[deploy_mlag.yml]"]
  node_mlag_tasks["MLAG tasks<br/>[main.yml]"]
  node_mlag_template["MLAG template<br/>[mlag.j2]"]
end

subgraph group_jinjayaml["Jinja configuration"]
  node_jinja_inventory["Jinja inventory<br/>[inventory.yml]"]
  node_jinja_vars["Jinja variables<br/>[all.yml]"]
  node_host_vars["Host variables"]
  node_full_config_playbook["Full config playbook<br/>[full_config.yml]"]
  node_config_template["Full config template<br/>[full_config.j2]"]
  node_interface_template["Interface template<br/>[interfaces.j2]"]
  node_vlan_template["VLAN template<br/>[vlans.j2]"]
  node_aaa_template["AAA template<br/>[aaa.j2]"]
  node_management_template["Management template<br/>[management.j2]"]
end

node_learner(("Workshop learner"))
node_network_devices(("Network devices"))

node_learner -.->|"runs"| node_banner_playbook
node_learner -.->|"runs"| node_mlag_playbook
node_learner -.->|"runs"| node_hello_playbook
node_learner -.->|"runs"| node_full_config_playbook
node_mlag_playbook -.->|"uses"| node_ansible_inventory
node_mlag_playbook -.->|"invokes"| node_mlag_tasks
node_mlag_tasks -.->|"renders"| node_mlag_template
node_mlag_tasks -.->|"configures"| node_network_devices
node_banner_playbook -.->|"uses"| node_ansible_inventory
node_hello_playbook -.->|"uses"| node_ansible_inventory
node_full_config_playbook -.->|"uses"| node_jinja_inventory
node_full_config_playbook -.->|"renders"| node_config_template
node_config_template -.->|"includes"| node_interface_template
node_config_template -.->|"includes"| node_vlan_template
node_config_template -.->|"includes"| node_aaa_template
node_config_template -.->|"includes"| node_management_template
node_full_config_playbook -.->|"configures"| node_network_devices

click node_ansible_inventory "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/inventory/inventory.yml"
click node_ansible_vars "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/tree/main/ansible/inventory/group_vars"
click node_banner_playbook "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/playbooks/deploy_banner.yml"
click node_mlag_playbook "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/playbooks/deploy_mlag.yml"
click node_mlag_tasks "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/roles/mlag/tasks/main.yml"
click node_mlag_template "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/roles/mlag/templates/mlag.j2"
click node_hello_playbook "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/playbooks/hello_world.yml"
click node_jinja_inventory "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/inventory.yml"
click node_jinja_vars "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/group_vars/all.yml"
click node_host_vars "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/tree/main/jinjayaml/host_vars"
click node_full_config_playbook "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/playbooks/full_config.yml"
click node_config_template "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/full_config.j2"
click node_interface_template "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/interfaces.j2"
click node_vlan_template "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/vlans.j2"
click node_aaa_template "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/aaa.j2"
click node_management_template "https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/management.j2"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ansible_inventory,node_ansible_vars,node_banner_playbook,node_hello_playbook toneBlue
class node_mlag_playbook,node_mlag_tasks,node_mlag_template toneAmber
class node_jinja_inventory,node_jinja_vars,node_host_vars,node_full_config_playbook,node_config_template,node_interface_template,node_vlan_template,node_aaa_template,node_management_template toneMint
class node_learner,node_network_devices toneIndigo
```

## Components

### Ansible examples

- [Ansible inventory](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/inventory/inventory.yml): `ansible/inventory/inventory.yml`
- [Ansible variables](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/tree/main/ansible/inventory/group_vars): `ansible/inventory/group_vars`
- [Banner playbook](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/playbooks/deploy_banner.yml): `ansible/playbooks/deploy_banner.yml`
- [Hello world playbook](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/playbooks/hello_world.yml): `ansible/playbooks/hello_world.yml`

### MLAG deployment

- [MLAG playbook](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/playbooks/deploy_mlag.yml): `ansible/playbooks/deploy_mlag.yml`
- [MLAG tasks](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/roles/mlag/tasks/main.yml): `ansible/roles/mlag/tasks/main.yml`
- [MLAG template](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/ansible/roles/mlag/templates/mlag.j2): `ansible/roles/mlag/templates/mlag.j2`

### Jinja configuration

- [Jinja inventory](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/inventory.yml): `jinjayaml/inventory.yml`
- [Jinja variables](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/group_vars/all.yml): `jinjayaml/group_vars/all.yml`
- [Host variables](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/tree/main/jinjayaml/host_vars): `jinjayaml/host_vars`
- [Full config playbook](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/playbooks/full_config.yml): `jinjayaml/playbooks/full_config.yml`
- [Full config template](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/full_config.j2): `jinjayaml/templates/full_config.j2`
- [Interface template](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/interfaces.j2): `jinjayaml/templates/interfaces.j2`
- [VLAN template](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/vlans.j2): `jinjayaml/templates/vlans.j2`
- [AAA template](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/aaa.j2): `jinjayaml/templates/aaa.j2`
- [Management template](https://github.com/ahmedmostafa1983/ci-workshops-fundamentals/blob/main/jinjayaml/templates/management.j2): `jinjayaml/templates/management.j2`

### Other components

- **Workshop learner**
- **Network devices**

## Connections

- Workshop learner → Banner playbook: runs
- Workshop learner → MLAG playbook: runs
- Workshop learner → Hello world playbook: runs
- Workshop learner → Full config playbook: runs
- MLAG playbook → Ansible inventory: uses
- MLAG playbook → MLAG tasks: invokes
- MLAG tasks → MLAG template: renders
- MLAG tasks → Network devices: configures
- Banner playbook → Ansible inventory: uses
- Hello world playbook → Ansible inventory: uses
- Full config playbook → Jinja inventory: uses
- Full config playbook → Full config template: renders
- Full config template → Interface template: includes
- Full config template → VLAN template: includes
- Full config template → AAA template: includes
- Full config template → Management template: includes
- Full config playbook → Network devices: configures
