You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our following example, with_fileglob used to return an empty list. Now, when with_fileglob finds no results, our task simply fails.
STEPS TO REPRODUCE
Create the following playbook:
- hosts: all
gather_facts: no
tasks:
# this will copy a bunch of config files over -- dir must be created first
- file: dest=/etc/fooapp state=directory
- copy: src={{ item }} dest=/etc/fooapp/ owner=root mode=600
with_fileglob: /playbooks/files/fooapp/*
ISSUE TYPE
Bug Report.
ANSIBLE VERSION
CONFIGURATION
All defaults.
OS / ENVIRONMENT
Ubuntu 12.04.
SUMMARY
In our following example,
with_fileglob
used to return an empty list. Now, whenwith_fileglob
finds no results, our task simply fails.STEPS TO REPRODUCE
EXPECTED RESULTS
On ansible-2.1.1.0, we get the following:
ACTUAL RESULTS
On ansible-2.2, we get the following:
The text was updated successfully, but these errors were encountered: