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
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# 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
|
- name: Retrieve default configuration files
|
||||||
uri:
|
uri:
|
||||||
url: "{{ item }}"
|
url: "{{ item }}"
|
||||||
|
@ -57,7 +57,6 @@
|
|||||||
system: "yes"
|
system: "yes"
|
||||||
createhome: "yes"
|
createhome: "yes"
|
||||||
home: "{{ keystone_system_user_home }}"
|
home: "{{ keystone_system_user_home }}"
|
||||||
generate_ssh_key: "yes"
|
|
||||||
delegate_to: "{{ item }}"
|
delegate_to: "{{ item }}"
|
||||||
with_items: "{{ ansible_play_hosts }}"
|
with_items: "{{ ansible_play_hosts }}"
|
||||||
when: "inventory_hostname == ansible_play_hosts[0]"
|
when: "inventory_hostname == ansible_play_hosts[0]"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user