--- /dev/null
+#
+## Copyright (C) 2019 Wind River Systems, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/patches:${THISDIR}/files:"
+DESCRIPTION = " stx-ansible-playbooks"
+
+STABLE = "starlingx/master"
+PROTOCOL = "https"
+BRANCH = "r/stx.3.0"
+SRCREV = "0ad01cd4cae7d5c85e1022b816ed465b334bb2e5"
+S = "${WORKDIR}/git"
+PV = "1.0.0"
+
+LICENSE = "Apache-2.0"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+# The patch 0001-Treat-the-failure-as-expected-result-if-resize-using.patch
+# need to be removed if updating to stx 2.0.0 or above.
+SRC_URI = " \
+ git://opendev.org/starlingx/ansible-playbooks.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH} \
+ file://0001-stx.3.0-rebase-adjust-path.patch \
+ file://0002-update_sysinv_database-do-not-fail-if-ceph-monitor-a.patch \
+ file://0003-update_sysinv_database-wait-after-provision.patch \
+ file://0004-bringup_flock_services-use-systmd-for-fminit-and-add.patch \
+ file://0005-persist-config-add-retry-for-etcd.patch \
+ file://0006-bringup_helm-wait-after-initialize-helm-to-avoid-tim.patch \
+ "
+
+RDEPENDS_playbookconfig = " \
+ nscd \
+ python \
+ python-netaddr \
+ python-ptyprocess \
+ python-pexpect \
+ python-ansible \
+ sysinv \
+ grub \
+ grubby \
+ dracut \
+ openssl-bin \
+ ipset \
+ "
+
+do_configure () {
+ :
+}
+
+do_compile() {
+ :
+}
+
+do_install () {
+ cd ${S}/playbookconfig/src
+ oe_runmake -e \
+ DESTDIR=${D}/${datadir}/ansible/stx-ansible
+}
+
+pkg_postinst_ontarget_${PN}() {
+ cp /etc/ansible/ansible.cfg /etc/ansible/ansible.cfg.orig
+ cp /etc/ansible/hosts /etc/ansible/hosts.orig
+ cp /usr/share/ansible/stx-ansible/playbooks/ansible.cfg /etc/ansible
+ cp /usr/share/ansible/stx-ansible/playbooks/hosts /etc/ansible
+
+}
+
+FILES_${PN} = " \
+ ${datadir} \
+ "