From 01ffa71dfa4a442c4a2b13fce588748f8f25ce85 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Mon, 6 Apr 2020 21:01:32 +0000 Subject: [PATCH] - create missing (empty) template and files directories for 'ansible-galaxy init' during package build (fixes boo#1137479) OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=164 --- ansible.changes | 6 ++++++ ansible.spec | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ansible.changes b/ansible.changes index 55a25ff..0bf3734 100644 --- a/ansible.changes +++ b/ansible.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 6 20:45:04 UTC 2020 - lars@linux-schulserver.de - 2.9.6 + +- create missing (empty) template and files directories for + 'ansible-galaxy init' during package build (fixes boo#1137479) + ------------------------------------------------------------------- Thu Mar 5 08:23:57 UTC 2020 - Michael Ströder diff --git a/ansible.spec b/ansible.spec index 280e795..62c0920 100644 --- a/ansible.spec +++ b/ansible.spec @@ -367,6 +367,9 @@ for location in $DATADIR_LOCATIONS ; do done mkdir -p %{buildroot}%{_sysconfdir}/ansible/ mkdir -p %{buildroot}%{_sysconfdir}/ansible/roles/ +# fix for https://github.com/ansible/ansible/pull/24381 +# resp. https://bugzilla.opensuse.org/show_bug.cgi?id=1137479 +mkdir -p %{buildroot}%{python3_sitelib}/ansible/galaxy/data/default/role/{files,templates} cp examples/hosts %{buildroot}%{_sysconfdir}/ansible/ cp examples/ansible.cfg %{buildroot}%{_sysconfdir}/ansible/