Skip to main content
🎓 Claude Code Masterclass Learn AI-assisted development on Udemy — plus the companion book on Leanpub & Amazon. Start Learning
Ansible Lightspeed vs GitHub Copilot for Automation
Automation

Ansible Lightspeed vs GitHub Copilot

Detailed comparison of Ansible Lightspeed and GitHub Copilot for writing Ansible playbooks. FQCN accuracy, module knowledge, and real-world test results.

LB
Luca Berton
· 2 min read

I have been using both Ansible Lightspeed and GitHub Copilot daily for the past year. Here is my honest comparison based on real production use — not marketing claims.

The Test

I gave both tools the same 10 prompts and evaluated the output on:

  • Correctness — does the playbook actually work?
  • FQCN usage — does it use fully qualified collection names?
  • Best practices — idempotency, handlers, proper modules
  • RHEL awareness — uses dnf not apt, knows firewalld not ufw

Results Summary

CriteriaAnsible LightspeedGitHub Copilot
Syntactically correct9/107/10
FQCN always used10/104/10
Correct module choice9/106/10
RHEL-specific patterns10/105/10
Handler usage8/105/10
Idempotent tasks9/106/10
Overall9.2/105.5/10

Test 1: Install and Configure Nginx

Prompt: “Install nginx on RHEL 9 with TLS, open firewall, enable service”

Ansible Lightspeed output:

- name: Install nginx
  ansible.builtin.dnf:
    name: nginx
    state: present

- name: Deploy TLS configuration
  ansible.builtin.template:
    src: nginx-tls.conf.j2
    dest: /etc/nginx/conf.d/tls.conf
    mode: "0644"
  notify: Restart nginx

- name: Open HTTPS port
  ansible.posix.firewalld:
    service: https
    permanent: true
    state: enabled
    immediate: true

- name: Ensure nginx is running
  ansible.builtin.systemd:
    name: nginx
    state: started
    enabled: true

GitHub Copilot output:

- name: Install nginx
  apt:
    name: nginx
    state: present

- name: Enable nginx
  service:
    name: nginx
    state: started
    enabled: yes

Verdict: Lightspeed wins. Copilot used apt (wrong for RHEL), skipped FQCN, missed firewall and TLS, used service instead of systemd.

Test 2: Create a User with SSH Key

Prompt: “Create application user with SSH key and sudo access”

Lightspeed: Used ansible.builtin.user, ansible.posix.authorized_key, proper mode: "0600" on .ssh directory. Included groups: wheel for RHEL sudo.

Copilot: Used user (no FQCN), added to sudo group (Debian pattern, not RHEL), forgot SSH directory permissions.

Test 3: Kubernetes Deployment

Prompt: “Deploy a 3-replica nginx on Kubernetes with service”

Lightspeed: Used kubernetes.core.k8s module with inline manifest, proper FQCN.

Copilot: Generated raw kubectl shell commands — not idempotent, not Ansible-native.

When Copilot Wins

To be fair, Copilot is better at:

  • Multi-language contexts — switching between Ansible, Python, Terraform in one session
  • General coding tasks — Python scripts, Jinja2 templates, shell scripts
  • Speed — suggestions appear faster
  • Editor integration — deeper VS Code integration with inline suggestions

If you write Ansible 20% of the time and Python/Terraform/Bash 80%, Copilot might be the better overall investment.

When Lightspeed Wins

Lightspeed dominates for:

  • Pure Ansible work — FQCN, module accuracy, role patterns
  • RHEL/Red Hat ecosystems — knows the right packages, services, paths
  • Enterprise compliance — content attribution, audit logging
  • Consistency — enforces patterns across teams
  • Security-conscious environments — on-prem model option

If you write Ansible 50%+ of the time, Lightspeed is significantly better.

Pricing (2026)

PlanAnsible LightspeedGitHub Copilot
Free tierCommunity (Red Hat account)None
IndividualIncluded in AAP$10/month
EnterpriseIncluded in AAP subscription$19/month/user
On-premiseswatsonx Code AssistantCopilot Enterprise

My Recommendation

Use both. I run Lightspeed as my primary for .yml files and Copilot for everything else. VS Code handles multiple AI assistants fine.

If forced to choose one:

  • Ansible-heavy teams (platform engineering, SRE) → Ansible Lightspeed
  • Polyglot teams (full-stack, DevOps scripting) → GitHub Copilot
  • Enterprise with AAP subscription → Lightspeed (already included)

About the Author

I am Luca Berton, AI and Cloud Advisor. I have written 8 books on Ansible and automation. Book a consultation to optimize your team’s automation workflow.

Free 30-min AI & Cloud consultation

Book Now