Some operating systems (notably openSUSE) have the former but not
the latter, which results in the single call to find(1) we've used
so far to fail.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
I tried implementing my original suggestion and it turned out to
be much worse than what Jim and Fabiano proposed, so I've decided
to go for the latter (except fixed ;).
guests/playbooks/update/tasks/paths.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guests/playbooks/update/tasks/paths.yml
b/guests/playbooks/update/tasks/paths.yml
index 770680e..aada1f3 100644
--- a/guests/playbooks/update/tasks/paths.yml
+++ b/guests/playbooks/update/tasks/paths.yml
@@ -17,7 +17,7 @@
- su
- name: 'Look for files'
- shell: 'find /etc /usr/local/etc -name {{ item }} 2>/dev/null'
+ shell: '(find /usr/local/etc -name {{ item }}; find /etc -name {{ item }})
2>/dev/null'
register: find
with_items:
- sudoers
--
2.23.0