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:
parent
ed136ef79c
commit
43d03a03cc
@ -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 }}"
|
||||
|
@ -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]"
|
||||
|
Loading…
x
Reference in New Issue
Block a user