aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/stor4nfv/roles/stor4nfv/tasks/nbp.yml
blob: 5361f5cd0511a2cc86c0e6ac96eda42a369e19a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# #############################################################################
# Copyright (c) 2018 Intel Corp.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
# #############################################################################
---

- name: render nbp inventory
  remote_user: root
  template:
    src: nbp.hosts.j2
    dest: $HOME/gopath/src/github.com/stor4nfv/stor4nfv/ci/nbp-ansible/nbp.hosts

- name: set nbp to csi
  remote_user: root
  shell: |
    cd $HOME/gopath/src/github.com/stor4nfv/stor4nfv/ci/nbp-ansible;
    sed -i 's/^nbp_plugin_type.*/nbp_plugin_type: csi/g' group_vars/common.yml

- name: run playbook
  remote_user: root
  shell: |
    cd $HOME/gopath/src/github.com/stor4nfv/stor4nfv/ci/nbp-ansible;
    ansible-playbook site.yml -i nbp.hosts | tee /var/log/stor4nfv-nbp.log