Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cidrblock
Copy link
Contributor

This PR converts the Podman example from legacy platform-based configuration to a modern ansible-native approach.

Changes:

  • Replace platform definitions with standard Ansible inventory structure
  • Use ghcr.io/ansible/community-ansible-dev-tools:latest container image with Python support
  • Add comprehensive playbooks: create, converge, verify, cleanup, destroy
  • Replace raw commands with proper Ansible modules (slurp, copy, file)
  • Implement intelligent cleanup with container state detection
  • Update documentation to reflect ansible-native patterns

Benefits:

  • Demonstrates modern Molecule best practices
  • Uses standard Ansible inventory and playbooks
  • Provides complete test lifecycle example
  • Maintains test compatibility and schema compliance

The example now serves as a reference implementation for ansible-native container testing with Molecule.

- Replace platform-based configuration with standard Ansible inventory
- Use ghcr.io/ansible/community-ansible-dev-tools:latest container image
- Add comprehensive playbooks for create, converge, verify, cleanup, destroy
- Replace raw commands with proper Ansible modules
- Add intelligent cleanup with container state detection
- Update documentation to reflect ansible-native approach
- Maintain schema compliance and test compatibility
@cidrblock cidrblock merged commit d3b1fe4 into ansible:main Aug 16, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant