Created
October 5, 2023 14:50
-
-
Save chrwang/bad5de8f073bd6a8cedc1332f2737768 to your computer and use it in GitHub Desktop.
Molecule Bug Reproducer: idempotence failures
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
dependency: | |
name: "galaxy" | |
driver: | |
name: "podman" | |
platforms: | |
- name: "test-idempotence" | |
image: "alpine:latest" | |
verifier: | |
name: "ansible" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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