openstack-ansible-os_sahara/tasks/sahara_db_setup.yml
Travis Truman 76d83ee22e Ansible 2.1.1 role testing
Depends-On: I1c582502c3360fd6c20443faeca84de3900465d1
Change-Id: I5f7aea355e6df97620190c1afde214f191872970
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-03 14:12:51 +01:00

20 lines
776 B
YAML

---
# 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.
- name: Perform a Sahara DB sync
command: "{{ sahara_bin }}/sahara-db-manage
--config-file {{ sahara_db_config }} upgrade head"
become: yes
become_user: "{{ sahara_system_user_name }}"
changed_when: false