Skip to content

Instantly share code, notes, and snippets.

@chrwang
Created October 5, 2023 14:50
Show Gist options
  • Save chrwang/bad5de8f073bd6a8cedc1332f2737768 to your computer and use it in GitHub Desktop.
Save chrwang/bad5de8f073bd6a8cedc1332f2737768 to your computer and use it in GitHub Desktop.
Molecule Bug Reproducer: idempotence failures
---
- name: "converge"
hosts: "all"
tasks:
- name: "this task should be idempotent"
ansible.builtin.command: "echo hello"
changed_when: false
- name: "this task should not be idempotent"
ansible.builtin.command: "touch /tmp/test"
changed_when: true
---
dependency:
name: "galaxy"
driver:
name: "podman"
platforms:
- name: "test-idempotence"
image: "alpine:latest"
verifier:
name: "ansible"
---
- name: "verify"
hosts: "all"
gather_facts: false
tasks:
- name: "print some fun info"
ansible.builtin.debug:
msg: "running verify play!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment