summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible
diff options
context:
space:
mode:
authorwutianwei <wutianwei1@huawei.com>2017-11-30 11:33:11 +0800
committerYifei Xue <xueyifei@huawei.com>2017-12-14 12:21:10 +0000
commit3cc64d55ebdeca32cb8a82484bd3a951066136b5 (patch)
treefb95ecfdc876ef0e66c59c9290b29547b5547c3f /deploy/adapters/ansible
parent0432c91cb2c2e11576a63ec93f596c4fb5c9286b (diff)
Remove the /var/log/osa directory if exist
generate password again to ensure the password is different everytime Change-Id: I8c88266e724922301f4411b330d7d7154bfb250e Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible')
-rwxr-xr-xdeploy/adapters/ansible/roles/config-osa/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
index 046b25e5..9b657fe9 100755
--- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
@@ -7,11 +7,24 @@
# http://www.apache.org/licenses/LICENSE-2.0
# #############################################################################
---
+- name: remove osa log directory if exist
+ file:
+ path: /var/log/osa/
+ state: absent
+
- name: create osa log directory
file:
path: /var/log/osa/
state: directory
+- name: remove osa user secrets if exist
+ shell: cp -rf /opt/openstack-ansible/etc/openstack_deploy/user_secrets.yml /etc/openstack_deploy/
+
+- name: generate the osa password
+ command: python pw-token-gen.py --file /etc/openstack_deploy/user_secrets.yml
+ args:
+ chdir: "/opt/openstack-ansible/scripts"
+
- name: disable kernel update in rt_kvm scenario
lineinfile:
dest: /etc/ansible/roles/openstack_hosts/vars/ubuntu-16.04.yml