Skip to content

Instantly share code, notes, and snippets.

@NilashishC
Created January 13, 2026 14:52
Show Gist options
  • Select an option

  • Save NilashishC/589ad437b7124d88a756509c1533d838 to your computer and use it in GitHub Desktop.

Select an option

Save NilashishC/589ad437b7124d88a756509c1533d838 to your computer and use it in GitHub Desktop.
---
version: 3
images:
base_image:
name: 'registry.redhat.io/ansible-automation-platform/ee-minimal-rhel8:2.18'
dependencies:
galaxy:
collections:
- name: ansible.mcp_builder
- name: ansible.mcp
python_interpreter:
python_path: "/usr/bin/python3.11"
additional_build_files:
- src: ./ansible.cfg
dest: configs
- src: ./mcp-vars.yaml
dest: configs
options:
package_manager_path: /usr/bin/microdnf
additional_build_steps:
prepend_base:
- COPY _build/configs/ansible.cfg /etc/ansible/ansible.cfg
- COPY _build/configs/mcp-vars.yaml /tmp/mcp-vars.yaml
append_final:
- RUN ansible-playbook ansible.mcp_builder.install_mcp -e mcp_servers=azure_mcp,github_mcp -e @/tmp/mcp-vars.yaml
- RUN rm -f /etc/ansible/ansible.cfg /tmp/mcp-vars.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment