Split user create and ssh key generation

In order to allow an install and config split, but not
to have ssh keys left inside an pre-installed container,
the two tasks are split and tagged appropriately.

Change-Id: I468d1178179d70edfe4b19d40a9a32b35ad18258
This commit is contained in:
Jesse Pretorius 2017-06-15 20:10:41 +01:00 committed by Jesse Pretorius (odyssey4me)
parent ed136ef79c
commit 43d03a03cc
2 changed files with 8 additions and 1 deletions

View File

@ -13,6 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Generate the keystone system user ssh key
user:
name: "{{ keystone_system_user_name }}"
generate_ssh_key: "yes"
delegate_to: "{{ item }}"
with_items: "{{ ansible_play_hosts }}"
when: "inventory_hostname == ansible_play_hosts[0]"
- name: Retrieve default configuration files
uri:
url: "{{ item }}"

View File

@ -57,7 +57,6 @@
system: "yes"
createhome: "yes"
home: "{{ keystone_system_user_home }}"
generate_ssh_key: "yes"
delegate_to: "{{ item }}"
with_items: "{{ ansible_play_hosts }}"
when: "inventory_hostname == ansible_play_hosts[0]"