54a4e496b9
We are having all machines in DNS and want to be able to change IP addresses in DNS. So we do not use ansible_host in our host_vars/machine.yml As os_keystone is the first Ansible role we use. We will make similar changes to other roles later on. Change-Id: Ic9f43cc3f6b62b5098e85afcf55f008c022517f6
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
---
|
|
# Copyright 2016, Rackspace US, Inc.
|
|
#
|
|
# 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.
|
|
|
|
# TODO(logan): Change to synchronize module to pass ANSIBLE0006
|
|
# and remove the skip_ansible_lint tag at that time.
|
|
- name: Distribute the credential key repository
|
|
command: >
|
|
rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
|
|
-avz
|
|
--delete
|
|
{{ keystone_credential_key_repository }}/
|
|
{{ keystone_system_user_name }}@{{ hostvars[item]['ansible_host'] | default(item) }}:{{ keystone_credential_key_repository }}/
|
|
become: yes
|
|
become_user: "{{ keystone_system_user_name }}"
|
|
changed_when: false
|
|
with_items: "{{ groups['keystone_all'][1:] }}"
|
|
tags:
|
|
- skip_ansible_lint
|