diff options
| author | zhuzeyu <zhu.zeyu@zte.com.cn> | 2017-02-22 16:57:42 +0800 |
|---|---|---|
| committer | zhuzeyu <zhu.zeyu@zte.com.cn> | 2017-03-09 11:14:35 +0800 |
| commit | 473a5e0ca72f11d0610b8ffd96187aa95145abb4 (patch) | |
| tree | a622c75e09c9ec62a75a80991a22432f95363c06 /ansible/post-deploy.yml | |
| parent | 56445484d5271d4908019b60120f43eff2263d22 (diff) | |
| download | kolla-ansible-473a5e0ca72f11d0610b8ffd96187aa95145abb4.tar.gz kolla-ansible-473a5e0ca72f11d0610b8ffd96187aa95145abb4.zip | |
Modify the hosts of the post-deploy.yml playbook
The admin-openrc.sh should copy to where the python-openstackclient was installed.
whatever multinode and all-in-one, the place where python-openstackclient was
installed is localhost, So admin-openrc.sh should copy to localhost.
The purpose of "connection: local" in ansible playbook is that make sure this script
can copy to localhost.In all-in-one, Writting as this is ok, it will copy to localhost,
but in multinode, this will make a bug, add ansible_connection=ssh in inventory file
the admin-openrc.sh will not copy to the localhost,the "connection:local" in post-deploy.yml
will be covered by "ansible_connection=ssh" in inventory file, then the script will be copied
to target node. So we should modify the hosts to localhost to avoid this bug.
Change-Id: I054717cc2b4adc600808282034a10a58c1184a38
Closes-Bug: #1666808
Diffstat (limited to 'ansible/post-deploy.yml')
| -rw-r--r-- | ansible/post-deploy.yml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index 76913dc54..2f5ad7669 100644 --- a/ansible/post-deploy.yml +++ b/ansible/post-deploy.yml @@ -1,9 +1,8 @@ --- - name: Creating admin openrc file on the deploy node - hosts: all + hosts: localhost tasks: - template: src: "roles/common/templates/admin-openrc.sh.j2" dest: "{{ node_config_directory }}/admin-openrc.sh" run_once: True - connection: local |
