|
|
|
@ -20,7 +20,20 @@
|
|
|
|
|
openstack subnet create --network provider
|
|
|
|
|
--allocation-pool start={{ allocation_pool['start'] }},end={{ allocation_pool['end'] }}
|
|
|
|
|
--dns-nameserver {{ dns_nameserver }} --gateway {{ gateway }} --subnet-range {{ subnet_range }} providersub
|
|
|
|
|
- openstack flavor create --id 0 --vcpus 1 --ram 64 --disk 1 m1.nano
|
|
|
|
|
- openstack keypair create --public-key /root/id_rsa.pub adminkey
|
|
|
|
|
when: "{{ configure_networks }}" == True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: keystone
|
|
|
|
|
become: True
|
|
|
|
|
vars_files:
|
|
|
|
|
- settings.yml
|
|
|
|
|
tasks:
|
|
|
|
|
- name: copy public key
|
|
|
|
|
copy:
|
|
|
|
|
content: "{{ rsa_pub }}"
|
|
|
|
|
dest: /srv/keystone/root/id_rsa.pub
|
|
|
|
|
- name: post install configuration
|
|
|
|
|
command: docker exec -i keystone.service bash -c "source /root/admin-openrc.sh && {{ item }}"
|
|
|
|
|
with_items:
|
|
|
|
|
- openstack flavor create --id 0 --vcpus 1 --ram 64 --disk 1 m1.nano
|
|
|
|
|
- openstack keypair create --public-key /root/id_rsa.pub adminkey
|
|
|
|
|