Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Ensure testing of synchronize module (#58)
Browse files Browse the repository at this point in the history
Related: #45
  • Loading branch information
ssbarnea authored Sep 5, 2021
1 parent 90ea66c commit 577f6ba
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
- name: Converge
hosts: all
tasks:
# replace these tasks with whatever you find suitable to test
- name: Copy something to test use of synchronize module
ansible.posix.synchronize:
src: /etc/hosts
dest: /tmp/hosts-from-controller
# synchronize module works with podman connections only with 2.11+ so
# we skip running it on unsupported platforms.
when: "ansible_version.full is version_compare('2.11', '>=')"
- name: "Include {{ cookiecutter.role_name }}"
include_role:
name: "{{ cookiecutter.role_name }}"

0 comments on commit 577f6ba

Please sign in to comment.