diff options
author | Yifei Xue <xueyifei@huawei.com> | 2017-12-27 12:26:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-27 12:26:43 +0000 |
commit | c8c8a49e2ad96763915b9f9c4f52e68834ba1a1a (patch) | |
tree | cbce984c416a140beff3521b8996cb5e1ab19083 | |
parent | 84f36e9f062c056cbb8ee15c94c4cc208dbc7766 (diff) | |
parent | 3cc64d55ebdeca32cb8a82484bd3a951066136b5 (diff) |
Merge "Remove the /var/log/osa directory if exist"
-rwxr-xr-x | deploy/adapters/ansible/roles/config-osa/tasks/main.yml | 13 |
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 855412ab..ceceb956 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 |