On Sat, 29 Feb 2020 13:13:10 -0800 (PST)
Stephen Gevers <[email protected]> wrote:

> I opened an issue <https://github.com/ansible/ansible/issues/67410>
> ... I created a playbook where two hosts ...
>
> [...]
>    2. remove the file from host1 using a when option to limit the action to 
>    the desired host (output shows "skipping & changed")

Clarification is needed. Why the membership of "solr" in the list of groups
"group_names" is tested when "solr" is a host!?

Quoting from the issue #67410:

- name: Test shared file issue
  hosts: dmgr:solr
  ...
  tasks:
  ...
  - name: Remove the file from solr
    file:
      path: "{{ shared_dir }}/testfile"
      state: absent
    when: "'solr' in group_names"

Thank you,

        -vlado

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200301063638.2ac5c1e2%40gmail.com.

Attachment: pgpMbxemRImcm.pgp
Description: OpenPGP digital signature

Reply via email to