summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/configure-localhost.yml
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-04-03 09:33:17 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-03 09:33:17 +0000
commite2b961ec221a68437fae2a062d3492b6e77d27ad (patch)
tree19ac6db7720ae38914f65b14920b831bee2e0678 /xci/playbooks/configure-localhost.yml
parent56ab31c8ae5fe9e4f151fc1de5881c7bb2a09a2f (diff)
parent396ea65c98f71580a2e789c7d93c8d8611878b64 (diff)
Merge changes from topic 'misc-simplifications-osa'
* changes: xci: bootstrap-host: Make active network interface consistent xci: osa: Simplify tasks for copying OSA configuration files xci: Use proper Ansible modules to manage SSH keys
Diffstat (limited to 'xci/playbooks/configure-localhost.yml')
-rw-r--r--xci/playbooks/configure-localhost.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/xci/playbooks/configure-localhost.yml b/xci/playbooks/configure-localhost.yml
index f64400e3..1f010528 100644
--- a/xci/playbooks/configure-localhost.yml
+++ b/xci/playbooks/configure-localhost.yml
@@ -99,6 +99,20 @@
when:
- installer_type == "osa"
+ - name: Configure SSH key for local user
+ user:
+ name: "{{ ansible_env.USER }}"
+ createhome: yes
+ home: "/home/{{ ansible_env.USER }}"
+ move_home: yes
+ shell: /bin/bash
+ generate_ssh_key: yes
+ ssh_key_bits: 2048
+ ssh_key_comment: xci
+ ssh_key_type: rsa
+ ssh_key_file: .ssh/id_rsa
+ state: present
+
- name: Dump XCI execution environment to a file
shell: env > "{{ xci_path }}/.cache/xci.env"
args: