summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-07-15 13:37:01 -0400
committerScott Dodson <sdodson@redhat.com>2016-07-15 13:47:04 -0400
commit479a7fdd55961bcbbfb0d0c9095dcae72577a538 (patch)
tree2bcf08ab25560c12688804d03ee87898cc43f8d4
parent65ffae3e6edc8902c591dfef792a505a16029698 (diff)
downloadopenshift-479a7fdd55961bcbbfb0d0c9095dcae72577a538.tar.gz
openshift-479a7fdd55961bcbbfb0d0c9095dcae72577a538.tar.bz2
openshift-479a7fdd55961bcbbfb0d0c9095dcae72577a538.tar.xz
openshift-479a7fdd55961bcbbfb0d0c9095dcae72577a538.zip
Symlink ansible 2.x locations to ansible 1.9 locations
-rw-r--r--openshift-ansible.spec12
1 files changed, 12 insertions, 0 deletions
diff --git a/openshift-ansible.spec b/openshift-ansible.spec
index f808faeeb..047cfb26e 100644
--- a/openshift-ansible.spec
+++ b/openshift-ansible.spec
@@ -70,6 +70,16 @@ cp -rp filter_plugins %{buildroot}%{_datadir}/ansible_plugins/
# openshift-ansible-lookup-plugins install
cp -rp lookup_plugins %{buildroot}%{_datadir}/ansible_plugins/
+# create symlinks from /usr/share/ansible/plugins/lookup ->
+# /usr/share/ansible_plugins/lookup_plugins
+pushd %{buildroot}%{_datadir}
+mkdir -p ansible/plugins
+pushd ansible/plugins
+ln -s ../../ansible_plugins/lookup_plugins lookup
+ln -s ../../ansible_plugins/filter_plugins filter
+popd
+popd
+
# atomic-openshift-utils install
pushd utils
%{__python} setup.py install --skip-build --root %{buildroot}
@@ -168,6 +178,7 @@ Requires: pyOpenSSL
%files filter-plugins
%{_datadir}/ansible_plugins/filter_plugins
+%{_datadir}/ansible/plugins/filter
# ----------------------------------------------------------------------------------
@@ -183,6 +194,7 @@ BuildArch: noarch
%files lookup-plugins
%{_datadir}/ansible_plugins/lookup_plugins
+%{_datadir}/ansible/plugins/lookup
# ----------------------------------------------------------------------------------
# atomic-openshift-utils subpackage