Advertisement
Guest User

Untitled

a guest
Nov 7th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.04 KB | None | 0 0
  1. clouds.yaml:
  2. clouds:
  3. trystack:
  4. auth:
  5. auth_url: http://8.43.86.2:5000/v2.0
  6. project_name: facebook1403083039721881
  7. tenant_id: a7c353675ba941d7ac1bfe12aecdf499
  8. tenant_name: facebook1403083039721881
  9. username: facebook1403083039721881
  10. password: **************
  11. region_name: RegionOne
  12.  
  13.  
  14. ansible.cfg:
  15. [defaults]
  16.  
  17. #Enable timing on tasks
  18. #callback_whitelist = profile_tasks
  19.  
  20. hosts file:
  21. [openstack_controller]
  22. localhost
  23.  
  24. #Environment vars
  25. cloud_provider_1=trystack
  26.  
  27. site.yml:
  28. #Master Playbook
  29. #Setup cloud playbook wide
  30. - hosts: openstack_controller
  31. connection: local
  32.  
  33. #vars to be used over all playbooks
  34. vars_files:
  35. - group_vars/clouds
  36.  
  37. #Roles for this playbook
  38. roles:
  39. - CreatePrivateNetwork
  40. - CreateKeyPair
  41. - CreateServers
  42.  
  43. CreatePrivateNetwork:
  44. #Create a private network
  45. - name: Create a Private Network
  46. os_network:
  47. cloud: "{{ cloud_provider_1 }}"
  48. state: present
  49. name: private development
  50. external: false
  51.  
  52. #Add a subnet to the private network
  53. - name: Add a subnet
  54. os_subnet:
  55. cloud: "{{ cloud_provider_1 }}"
  56. state: present
  57. name: private development subnet 1
  58. network_name: private development
  59. ip_version: 4
  60. cidr: 192.168.1.0/24
  61. dns_nameservers:
  62. - 8.8.8.8
  63. - 4.4.8.8
  64. enable_dhcp: true
  65. allocation_pool_start: 192.168.1.100
  66. allocation_pool_end: 192.168.1.200
  67.  
  68. CreateKeyPair:
  69. #Create a Keypair with a given public key
  70. - os_keypair:
  71. cloud: "{{ cloud_provider_1 }}"
  72. state: present
  73. name: development_key
  74. public_key_file: /Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreateKeyPair/files/id_rsa.pub
  75.  
  76. CreateServers:
  77. #Create an server instance on Openstack
  78.  
  79. #Get image facts
  80. - name: Get the ID for the Cirros image
  81. os_image_facts:
  82. cloud: "{{ cloud_provider_1 }}"
  83. image: Cirros-0.3.4
  84. #- debug: var=openstack_image
  85.  
  86. #Get network facts
  87. - name: Get network facts
  88. os_networks_facts:
  89. cloud: "{{ cloud_provider_1 }}"
  90. name: private
  91. #- debug: var=openstack_networks
  92.  
  93. #Get subnet facts
  94. - name: Get subnet facts
  95. os_subnets_facts:
  96. cloud: "{{ cloud_provider_1 }}"
  97. name: private subnet
  98. #- debug: var=openstack_subnets
  99.  
  100. #Create the instance
  101. - name: Create a Cirros Server instance
  102. os_server:
  103. cloud: "{{ cloud_provider_1 }}"
  104. state: present
  105. name: server1
  106. # image: openstack_image.id
  107. image: 672153ff-5266-43f0-9ac4-dda73a179a66
  108. key_name: development_key
  109. timeout: 30000
  110. wait: no
  111. flavor: 1
  112. auto_ip: no
  113.  
  114.  
  115. Executed with:
  116. ansible-playbook -i hosts site.yml -v -v -v
  117.  
  118.  
  119. Full output:
  120. $ ansible-playbook -i hosts site.yml -v -v -v
  121. Using /Users/wowbagger/Development/Ansible/Projects/TestRun1/ansible.cfg as config file
  122.  
  123. PLAYBOOK: site.yml *************************************************************
  124. 1 plays in site.yml
  125.  
  126. PLAY [openstack_controller] ****************************************************
  127.  
  128. TASK [setup] *******************************************************************
  129. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/system/setup.py
  130. <localhost> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  131. <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553323.94-153369781539121 `" && echo ansible-tmp-1478553323.94-153369781539121="` echo $HOME/.ansible/tmp/ansible-tmp-1478553323.94-153369781539121 `" ) && sleep 0'
  132. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/system/setup.py
  133. <cloud_provider_1=trystack> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  134. <cloud_provider_1=trystack> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553323.94-17880223772481 `" && echo ansible-tmp-1478553323.94-17880223772481="` echo $HOME/.ansible/tmp/ansible-tmp-1478553323.94-17880223772481 `" ) && sleep 0'
  135. <cloud_provider_1=trystack> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpilYxQt TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-17880223772481/setup.py
  136. <localhost> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpSFNrVR TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-153369781539121/setup.py
  137. <cloud_provider_1=trystack> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-17880223772481/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-17880223772481/setup.py && sleep 0'
  138. <localhost> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-153369781539121/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-153369781539121/setup.py && sleep 0'
  139. <cloud_provider_1=trystack> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-17880223772481/setup.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-17880223772481/" > /dev/null 2>&1 && sleep 0'
  140. <localhost> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-153369781539121/setup.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553323.94-153369781539121/" > /dev/null 2>&1 && sleep 0'
  141. ok: [cloud_provider_1=trystack]
  142. ok: [localhost]
  143.  
  144. TASK [CreatePrivateNetwork : Create a Private Network] *************************
  145. task path: /Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreatePrivateNetwork/tasks/main.yml:2
  146. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_network.py
  147. <cloud_provider_1=trystack> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  148. <cloud_provider_1=trystack> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553325.27-61634662010571 `" && echo ansible-tmp-1478553325.27-61634662010571="` echo $HOME/.ansible/tmp/ansible-tmp-1478553325.27-61634662010571 `" ) && sleep 0'
  149. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_network.py
  150. <localhost> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  151. <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553325.27-54352702837400 `" && echo ansible-tmp-1478553325.27-54352702837400="` echo $HOME/.ansible/tmp/ansible-tmp-1478553325.27-54352702837400 `" ) && sleep 0'
  152. <cloud_provider_1=trystack> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpyMSmo3 TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-61634662010571/os_network.py
  153. <localhost> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmp5LFzGi TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-54352702837400/os_network.py
  154. <cloud_provider_1=trystack> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-61634662010571/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-61634662010571/os_network.py && sleep 0'
  155. <localhost> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-54352702837400/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-54352702837400/os_network.py && sleep 0'
  156. <localhost> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-54352702837400/os_network.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-54352702837400/" > /dev/null 2>&1 && sleep 0'
  157. <cloud_provider_1=trystack> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-61634662010571/os_network.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553325.27-61634662010571/" > /dev/null 2>&1 && sleep 0'
  158. ok: [cloud_provider_1=trystack] => {
  159. "changed": false,
  160. "id": "3522192b-f24d-41ce-bce0-81c5ffdabf68",
  161. "invocation": {
  162. "module_args": {
  163. "admin_state_up": true,
  164. "api_timeout": null,
  165. "auth": null,
  166. "auth_type": null,
  167. "availability_zone": null,
  168. "cacert": null,
  169. "cert": null,
  170. "cloud": "trystack",
  171. "endpoint_type": "public",
  172. "external": false,
  173. "key": null,
  174. "name": "private development",
  175. "provider_network_type": null,
  176. "provider_physical_network": null,
  177. "provider_segmentation_id": null,
  178. "region_name": null,
  179. "shared": false,
  180. "state": "present",
  181. "timeout": 180,
  182. "verify": true,
  183. "wait": true
  184. },
  185. "module_name": "os_network"
  186. },
  187. "network": {
  188. "admin_state_up": true,
  189. "id": "3522192b-f24d-41ce-bce0-81c5ffdabf68",
  190. "mtu": 0,
  191. "name": "private development",
  192. "router:external": false,
  193. "shared": false,
  194. "status": "ACTIVE",
  195. "subnets": [
  196. "55e98fc1-272a-41d7-9660-1b2606d00473"
  197. ],
  198. "tenant_id": "a7c353675ba941d7ac1bfe12aecdf499"
  199. }
  200. }
  201. ok: [localhost] => {
  202. "changed": false,
  203. "id": "3522192b-f24d-41ce-bce0-81c5ffdabf68",
  204. "invocation": {
  205. "module_args": {
  206. "admin_state_up": true,
  207. "api_timeout": null,
  208. "auth": null,
  209. "auth_type": null,
  210. "availability_zone": null,
  211. "cacert": null,
  212. "cert": null,
  213. "cloud": "trystack",
  214. "endpoint_type": "public",
  215. "external": false,
  216. "key": null,
  217. "name": "private development",
  218. "provider_network_type": null,
  219. "provider_physical_network": null,
  220. "provider_segmentation_id": null,
  221. "region_name": null,
  222. "shared": false,
  223. "state": "present",
  224. "timeout": 180,
  225. "verify": true,
  226. "wait": true
  227. },
  228. "module_name": "os_network"
  229. },
  230. "network": {
  231. "admin_state_up": true,
  232. "id": "3522192b-f24d-41ce-bce0-81c5ffdabf68",
  233. "mtu": 0,
  234. "name": "private development",
  235. "router:external": false,
  236. "shared": false,
  237. "status": "ACTIVE",
  238. "subnets": [
  239. "55e98fc1-272a-41d7-9660-1b2606d00473"
  240. ],
  241. "tenant_id": "a7c353675ba941d7ac1bfe12aecdf499"
  242. }
  243. }
  244.  
  245. TASK [CreatePrivateNetwork : Add a subnet] *************************************
  246. task path: /Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreatePrivateNetwork/tasks/main.yml:10
  247. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_subnet.py
  248. <cloud_provider_1=trystack> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  249. <cloud_provider_1=trystack> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553332.06-238000899748035 `" && echo ansible-tmp-1478553332.06-238000899748035="` echo $HOME/.ansible/tmp/ansible-tmp-1478553332.06-238000899748035 `" ) && sleep 0'
  250. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_subnet.py
  251. <localhost> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  252. <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553332.07-121428827246294 `" && echo ansible-tmp-1478553332.07-121428827246294="` echo $HOME/.ansible/tmp/ansible-tmp-1478553332.07-121428827246294 `" ) && sleep 0'
  253. <localhost> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpXFTBfQ TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.07-121428827246294/os_subnet.py
  254. <cloud_provider_1=trystack> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmp1BfDnj TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.06-238000899748035/os_subnet.py
  255. <cloud_provider_1=trystack> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.06-238000899748035/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.06-238000899748035/os_subnet.py && sleep 0'
  256. <localhost> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.07-121428827246294/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.07-121428827246294/os_subnet.py && sleep 0'
  257. <localhost> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.07-121428827246294/os_subnet.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.07-121428827246294/" > /dev/null 2>&1 && sleep 0'
  258. <cloud_provider_1=trystack> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.06-238000899748035/os_subnet.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553332.06-238000899748035/" > /dev/null 2>&1 && sleep 0'
  259. ok: [cloud_provider_1=trystack] => {
  260. "changed": false,
  261. "id": "55e98fc1-272a-41d7-9660-1b2606d00473",
  262. "invocation": {
  263. "module_args": {
  264. "allocation_pool_end": "192.168.1.200",
  265. "allocation_pool_start": "192.168.1.100",
  266. "api_timeout": null,
  267. "auth": null,
  268. "auth_type": null,
  269. "availability_zone": null,
  270. "cacert": null,
  271. "cert": null,
  272. "cidr": "192.168.1.0/24",
  273. "cloud": "trystack",
  274. "dns_nameservers": [
  275. "8.8.8.8",
  276. "4.4.8.8"
  277. ],
  278. "enable_dhcp": true,
  279. "endpoint_type": "public",
  280. "gateway_ip": null,
  281. "host_routes": null,
  282. "ip_version": "4",
  283. "ipv6_address_mode": null,
  284. "ipv6_ra_mode": null,
  285. "key": null,
  286. "name": "private development subnet 1",
  287. "network_name": "private development",
  288. "no_gateway_ip": false,
  289. "region_name": null,
  290. "state": "present",
  291. "timeout": 180,
  292. "verify": true,
  293. "wait": true
  294. },
  295. "module_name": "os_subnet"
  296. },
  297. "subnet": {
  298. "allocation_pools": [
  299. {
  300. "end": "192.168.1.200",
  301. "start": "192.168.1.100"
  302. }
  303. ],
  304. "cidr": "192.168.1.0/24",
  305. "dns_nameservers": [
  306. "8.8.8.8",
  307. "4.4.8.8"
  308. ],
  309. "enable_dhcp": true,
  310. "gateway_ip": "192.168.1.1",
  311. "host_routes": [],
  312. "id": "55e98fc1-272a-41d7-9660-1b2606d00473",
  313. "ip_version": 4,
  314. "ipv6_address_mode": null,
  315. "ipv6_ra_mode": null,
  316. "name": "private development subnet 1",
  317. "network_id": "3522192b-f24d-41ce-bce0-81c5ffdabf68",
  318. "subnetpool_id": null,
  319. "tenant_id": "a7c353675ba941d7ac1bfe12aecdf499"
  320. }
  321. }
  322. ok: [localhost] => {
  323. "changed": false,
  324. "id": "55e98fc1-272a-41d7-9660-1b2606d00473",
  325. "invocation": {
  326. "module_args": {
  327. "allocation_pool_end": "192.168.1.200",
  328. "allocation_pool_start": "192.168.1.100",
  329. "api_timeout": null,
  330. "auth": null,
  331. "auth_type": null,
  332. "availability_zone": null,
  333. "cacert": null,
  334. "cert": null,
  335. "cidr": "192.168.1.0/24",
  336. "cloud": "trystack",
  337. "dns_nameservers": [
  338. "8.8.8.8",
  339. "4.4.8.8"
  340. ],
  341. "enable_dhcp": true,
  342. "endpoint_type": "public",
  343. "gateway_ip": null,
  344. "host_routes": null,
  345. "ip_version": "4",
  346. "ipv6_address_mode": null,
  347. "ipv6_ra_mode": null,
  348. "key": null,
  349. "name": "private development subnet 1",
  350. "network_name": "private development",
  351. "no_gateway_ip": false,
  352. "region_name": null,
  353. "state": "present",
  354. "timeout": 180,
  355. "verify": true,
  356. "wait": true
  357. },
  358. "module_name": "os_subnet"
  359. },
  360. "subnet": {
  361. "allocation_pools": [
  362. {
  363. "end": "192.168.1.200",
  364. "start": "192.168.1.100"
  365. }
  366. ],
  367. "cidr": "192.168.1.0/24",
  368. "dns_nameservers": [
  369. "8.8.8.8",
  370. "4.4.8.8"
  371. ],
  372. "enable_dhcp": true,
  373. "gateway_ip": "192.168.1.1",
  374. "host_routes": [],
  375. "id": "55e98fc1-272a-41d7-9660-1b2606d00473",
  376. "ip_version": 4,
  377. "ipv6_address_mode": null,
  378. "ipv6_ra_mode": null,
  379. "name": "private development subnet 1",
  380. "network_id": "3522192b-f24d-41ce-bce0-81c5ffdabf68",
  381. "subnetpool_id": null,
  382. "tenant_id": "a7c353675ba941d7ac1bfe12aecdf499"
  383. }
  384. }
  385.  
  386. TASK [CreateKeyPair : os_keypair] **********************************************
  387. task path: /Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreateKeyPair/tasks/main.yml:2
  388. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_keypair.py
  389. <cloud_provider_1=trystack> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  390. <cloud_provider_1=trystack> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553337.42-145813145674095 `" && echo ansible-tmp-1478553337.42-145813145674095="` echo $HOME/.ansible/tmp/ansible-tmp-1478553337.42-145813145674095 `" ) && sleep 0'
  391. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_keypair.py
  392. <localhost> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  393. <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553337.42-27615175441789 `" && echo ansible-tmp-1478553337.42-27615175441789="` echo $HOME/.ansible/tmp/ansible-tmp-1478553337.42-27615175441789 `" ) && sleep 0'
  394. <localhost> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpTm0tbi TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-27615175441789/os_keypair.py
  395. <cloud_provider_1=trystack> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpJ9VGQq TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-145813145674095/os_keypair.py
  396. <localhost> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-27615175441789/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-27615175441789/os_keypair.py && sleep 0'
  397. <cloud_provider_1=trystack> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-145813145674095/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-145813145674095/os_keypair.py && sleep 0'
  398. <localhost> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-27615175441789/os_keypair.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-27615175441789/" > /dev/null 2>&1 && sleep 0'
  399. <cloud_provider_1=trystack> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-145813145674095/os_keypair.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553337.42-145813145674095/" > /dev/null 2>&1 && sleep 0'
  400. ok: [cloud_provider_1=trystack] => {
  401. "changed": false,
  402. "id": "development_key",
  403. "invocation": {
  404. "module_args": {
  405. "api_timeout": null,
  406. "auth": null,
  407. "auth_type": null,
  408. "availability_zone": null,
  409. "cacert": null,
  410. "cert": null,
  411. "cloud": "trystack",
  412. "endpoint_type": "public",
  413. "key": null,
  414. "name": "development_key",
  415. "public_key": null,
  416. "public_key_file": "/Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreateKeyPair/files/id_rsa.pub",
  417. "region_name": null,
  418. "state": "present",
  419. "timeout": 180,
  420. "verify": true,
  421. "wait": true
  422. },
  423. "module_name": "os_keypair"
  424. },
  425. "key": {
  426. "HUMAN_ID": false,
  427. "NAME_ATTR": "name",
  428. "fingerprint": "f3:8f:5d:15:1d:22:89:8c:5a:6d:e1:bf:e6:4a:d7:cf",
  429. "human_id": null,
  430. "id": "development_key",
  431. "name": "development_key",
  432. "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLcCRXfitanU6KUB7JJ1KRDJOKcdjImtswtL3xjSdZAi6YxT6Yx44pE24h8pz5pqln+dQ4odUJu8oY/BpRWshyXAwPT3nreE76rhwzWOkgGZLO079gsHMnjYmvpPs2nQURLbL+elDEy/hUKKYgdk5bJfR/w/UrTA6Vm4uPHFr7SpnOxbe/GnGEjp9p3lgdB8Eq0kuzE95eWZ/SgU/IjJ3WK3y1v605j2Xy4QQ+QitRtJVX5TILtz44bu3U2ahy8NUTDvGqJrUs3xzQQXKdxcvEujboVpY0uIayhNlvcxLgjnUw59B/dPDrWh6qThfoqjpUA2ouYq9J71MzFsFup8bR",
  433. "request_ids": []
  434. }
  435. }
  436. ok: [localhost] => {
  437. "changed": false,
  438. "id": "development_key",
  439. "invocation": {
  440. "module_args": {
  441. "api_timeout": null,
  442. "auth": null,
  443. "auth_type": null,
  444. "availability_zone": null,
  445. "cacert": null,
  446. "cert": null,
  447. "cloud": "trystack",
  448. "endpoint_type": "public",
  449. "key": null,
  450. "name": "development_key",
  451. "public_key": null,
  452. "public_key_file": "/Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreateKeyPair/files/id_rsa.pub",
  453. "region_name": null,
  454. "state": "present",
  455. "timeout": 180,
  456. "verify": true,
  457. "wait": true
  458. },
  459. "module_name": "os_keypair"
  460. },
  461. "key": {
  462. "HUMAN_ID": false,
  463. "NAME_ATTR": "name",
  464. "fingerprint": "f3:8f:5d:15:1d:22:89:8c:5a:6d:e1:bf:e6:4a:d7:cf",
  465. "human_id": null,
  466. "id": "development_key",
  467. "name": "development_key",
  468. "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLcCRXfitanU6KUB7JJ1KRDJOKcdjImtswtL3xjSdZAi6YxT6Yx44pE24h8pz5pqln+dQ4odUJu8oY/BpRWshyXAwPT3nreE76rhwzWOkgGZLO079gsHMnjYmvpPs2nQURLbL+elDEy/hUKKYgdk5bJfR/w/UrTA6Vm4uPHFr7SpnOxbe/GnGEjp9p3lgdB8Eq0kuzE95eWZ/SgU/IjJ3WK3y1v605j2Xy4QQ+QitRtJVX5TILtz44bu3U2ahy8NUTDvGqJrUs3xzQQXKdxcvEujboVpY0uIayhNlvcxLgjnUw59B/dPDrWh6qThfoqjpUA2ouYq9J71MzFsFup8bR",
  469. "request_ids": []
  470. }
  471. }
  472.  
  473. TASK [CreateServers : Get the ID for the Cirros image] *************************
  474. task path: /Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreateServers/tasks/main.yml:4
  475. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_image_facts.py
  476. <cloud_provider_1=trystack> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  477. <cloud_provider_1=trystack> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553343.64-37091039466761 `" && echo ansible-tmp-1478553343.64-37091039466761="` echo $HOME/.ansible/tmp/ansible-tmp-1478553343.64-37091039466761 `" ) && sleep 0'
  478. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_image_facts.py
  479. <localhost> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  480. <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553343.64-133673154110331 `" && echo ansible-tmp-1478553343.64-133673154110331="` echo $HOME/.ansible/tmp/ansible-tmp-1478553343.64-133673154110331 `" ) && sleep 0'
  481. <localhost> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpputLN4 TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-133673154110331/os_image_facts.py
  482. <cloud_provider_1=trystack> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmptJenx9 TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-37091039466761/os_image_facts.py
  483. <localhost> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-133673154110331/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-133673154110331/os_image_facts.py && sleep 0'
  484. <cloud_provider_1=trystack> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-37091039466761/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-37091039466761/os_image_facts.py && sleep 0'
  485. <cloud_provider_1=trystack> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-37091039466761/os_image_facts.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-37091039466761/" > /dev/null 2>&1 && sleep 0'
  486. <localhost> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-133673154110331/os_image_facts.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553343.64-133673154110331/" > /dev/null 2>&1 && sleep 0'
  487. ok: [localhost] => {
  488. "ansible_facts": {
  489. "openstack_image": {
  490. "checksum": "ee1eca47dc88f4879d8a229cc70a07c6",
  491. "container_format": "bare",
  492. "created_at": "2016-03-16T18:24:55Z",
  493. "description": "cirros-0.3.4",
  494. "disk_format": "qcow2",
  495. "file": "/v2/images/672153ff-5266-43f0-9ac4-dda73a179a66/file",
  496. "id": "672153ff-5266-43f0-9ac4-dda73a179a66",
  497. "min_disk": 0,
  498. "min_ram": 0,
  499. "name": "Cirros-0.3.4",
  500. "owner": "81b6765f035b47cca7d389ef11d495ea",
  501. "protected": true,
  502. "schema": "/v2/schemas/image",
  503. "size": 13287936,
  504. "status": "active",
  505. "tags": [],
  506. "updated_at": "2016-05-05T15:03:19Z",
  507. "virtual_size": null,
  508. "visibility": "public"
  509. }
  510. },
  511. "changed": false,
  512. "invocation": {
  513. "module_args": {
  514. "api_timeout": null,
  515. "auth": null,
  516. "auth_type": null,
  517. "availability_zone": null,
  518. "cacert": null,
  519. "cert": null,
  520. "cloud": "trystack",
  521. "endpoint_type": "public",
  522. "image": "Cirros-0.3.4",
  523. "key": null,
  524. "region_name": null,
  525. "timeout": 180,
  526. "verify": true,
  527. "wait": true
  528. },
  529. "module_name": "os_image_facts"
  530. }
  531. }
  532. ok: [cloud_provider_1=trystack] => {
  533. "ansible_facts": {
  534. "openstack_image": {
  535. "checksum": "ee1eca47dc88f4879d8a229cc70a07c6",
  536. "container_format": "bare",
  537. "created_at": "2016-03-16T18:24:55Z",
  538. "description": "cirros-0.3.4",
  539. "disk_format": "qcow2",
  540. "file": "/v2/images/672153ff-5266-43f0-9ac4-dda73a179a66/file",
  541. "id": "672153ff-5266-43f0-9ac4-dda73a179a66",
  542. "min_disk": 0,
  543. "min_ram": 0,
  544. "name": "Cirros-0.3.4",
  545. "owner": "81b6765f035b47cca7d389ef11d495ea",
  546. "protected": true,
  547. "schema": "/v2/schemas/image",
  548. "size": 13287936,
  549. "status": "active",
  550. "tags": [],
  551. "updated_at": "2016-05-05T15:03:19Z",
  552. "virtual_size": null,
  553. "visibility": "public"
  554. }
  555. },
  556. "changed": false,
  557. "invocation": {
  558. "module_args": {
  559. "api_timeout": null,
  560. "auth": null,
  561. "auth_type": null,
  562. "availability_zone": null,
  563. "cacert": null,
  564. "cert": null,
  565. "cloud": "trystack",
  566. "endpoint_type": "public",
  567. "image": "Cirros-0.3.4",
  568. "key": null,
  569. "region_name": null,
  570. "timeout": 180,
  571. "verify": true,
  572. "wait": true
  573. },
  574. "module_name": "os_image_facts"
  575. }
  576. }
  577.  
  578. TASK [CreateServers : Get network facts] ***************************************
  579. task path: /Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreateServers/tasks/main.yml:11
  580. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_networks_facts.py
  581. <localhost> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  582. <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553348.49-127577774544609 `" && echo ansible-tmp-1478553348.49-127577774544609="` echo $HOME/.ansible/tmp/ansible-tmp-1478553348.49-127577774544609 `" ) && sleep 0'
  583. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_networks_facts.py
  584. <cloud_provider_1=trystack> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  585. <cloud_provider_1=trystack> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553348.49-226489306166031 `" && echo ansible-tmp-1478553348.49-226489306166031="` echo $HOME/.ansible/tmp/ansible-tmp-1478553348.49-226489306166031 `" ) && sleep 0'
  586. <localhost> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmp4UhItJ TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-127577774544609/os_networks_facts.py
  587. <cloud_provider_1=trystack> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmppuyp4b TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-226489306166031/os_networks_facts.py
  588. <cloud_provider_1=trystack> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-226489306166031/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-226489306166031/os_networks_facts.py && sleep 0'
  589. <localhost> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-127577774544609/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-127577774544609/os_networks_facts.py && sleep 0'
  590. <localhost> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-127577774544609/os_networks_facts.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-127577774544609/" > /dev/null 2>&1 && sleep 0'
  591. <cloud_provider_1=trystack> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-226489306166031/os_networks_facts.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553348.49-226489306166031/" > /dev/null 2>&1 && sleep 0'
  592. ok: [cloud_provider_1=trystack] => {
  593. "ansible_facts": {
  594. "openstack_networks": []
  595. },
  596. "changed": false,
  597. "invocation": {
  598. "module_args": {
  599. "api_timeout": null,
  600. "auth": null,
  601. "auth_type": null,
  602. "availability_zone": null,
  603. "cacert": null,
  604. "cert": null,
  605. "cloud": "trystack",
  606. "endpoint_type": "public",
  607. "filters": null,
  608. "key": null,
  609. "name": "private",
  610. "region_name": null,
  611. "timeout": 180,
  612. "verify": true,
  613. "wait": true
  614. },
  615. "module_name": "os_networks_facts"
  616. }
  617. }
  618. ok: [localhost] => {
  619. "ansible_facts": {
  620. "openstack_networks": []
  621. },
  622. "changed": false,
  623. "invocation": {
  624. "module_args": {
  625. "api_timeout": null,
  626. "auth": null,
  627. "auth_type": null,
  628. "availability_zone": null,
  629. "cacert": null,
  630. "cert": null,
  631. "cloud": "trystack",
  632. "endpoint_type": "public",
  633. "filters": null,
  634. "key": null,
  635. "name": "private",
  636. "region_name": null,
  637. "timeout": 180,
  638. "verify": true,
  639. "wait": true
  640. },
  641. "module_name": "os_networks_facts"
  642. }
  643. }
  644.  
  645. TASK [CreateServers : Get subnet facts] ****************************************
  646. task path: /Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreateServers/tasks/main.yml:18
  647. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_subnets_facts.py
  648. <localhost> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  649. <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553353.98-113129524447048 `" && echo ansible-tmp-1478553353.98-113129524447048="` echo $HOME/.ansible/tmp/ansible-tmp-1478553353.98-113129524447048 `" ) && sleep 0'
  650. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_subnets_facts.py
  651. <cloud_provider_1=trystack> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  652. <cloud_provider_1=trystack> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553353.98-205299099665275 `" && echo ansible-tmp-1478553353.98-205299099665275="` echo $HOME/.ansible/tmp/ansible-tmp-1478553353.98-205299099665275 `" ) && sleep 0'
  653. <cloud_provider_1=trystack> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmp4nzwuU TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-205299099665275/os_subnets_facts.py
  654. <localhost> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpZmKJJY TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-113129524447048/os_subnets_facts.py
  655. <localhost> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-113129524447048/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-113129524447048/os_subnets_facts.py && sleep 0'
  656. <cloud_provider_1=trystack> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-205299099665275/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-205299099665275/os_subnets_facts.py && sleep 0'
  657. <localhost> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-113129524447048/os_subnets_facts.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-113129524447048/" > /dev/null 2>&1 && sleep 0'
  658. <cloud_provider_1=trystack> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-205299099665275/os_subnets_facts.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553353.98-205299099665275/" > /dev/null 2>&1 && sleep 0'
  659. ok: [cloud_provider_1=trystack] => {
  660. "ansible_facts": {
  661. "openstack_subnets": []
  662. },
  663. "changed": false,
  664. "invocation": {
  665. "module_args": {
  666. "api_timeout": null,
  667. "auth": null,
  668. "auth_type": null,
  669. "availability_zone": null,
  670. "cacert": null,
  671. "cert": null,
  672. "cloud": "trystack",
  673. "endpoint_type": "public",
  674. "filters": null,
  675. "key": null,
  676. "name": "private subnet",
  677. "region_name": null,
  678. "timeout": 180,
  679. "verify": true,
  680. "wait": true
  681. },
  682. "module_name": "os_subnets_facts"
  683. }
  684. }
  685. ok: [localhost] => {
  686. "ansible_facts": {
  687. "openstack_subnets": []
  688. },
  689. "changed": false,
  690. "invocation": {
  691. "module_args": {
  692. "api_timeout": null,
  693. "auth": null,
  694. "auth_type": null,
  695. "availability_zone": null,
  696. "cacert": null,
  697. "cert": null,
  698. "cloud": "trystack",
  699. "endpoint_type": "public",
  700. "filters": null,
  701. "key": null,
  702. "name": "private subnet",
  703. "region_name": null,
  704. "timeout": 180,
  705. "verify": true,
  706. "wait": true
  707. },
  708. "module_name": "os_subnets_facts"
  709. }
  710. }
  711.  
  712. TASK [CreateServers : Create a Cirros Server instance] *************************
  713. task path: /Users/wowbagger/Development/Ansible/Projects/TestRun1/roles/CreateServers/tasks/main.yml:25
  714. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_server.py
  715. <cloud_provider_1=trystack> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  716. <cloud_provider_1=trystack> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553358.76-251712911846713 `" && echo ansible-tmp-1478553358.76-251712911846713="` echo $HOME/.ansible/tmp/ansible-tmp-1478553358.76-251712911846713 `" ) && sleep 0'
  717. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/cloud/openstack/os_server.py
  718. <localhost> ESTABLISH LOCAL CONNECTION FOR USER: wowbagger
  719. <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478553358.77-223781477062058 `" && echo ansible-tmp-1478553358.77-223781477062058="` echo $HOME/.ansible/tmp/ansible-tmp-1478553358.77-223781477062058 `" ) && sleep 0'
  720. <localhost> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpAg646A TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.77-223781477062058/os_server.py
  721. <cloud_provider_1=trystack> PUT /var/folders/5h/5fmj3rfn18j8lqlpm2hz59x80000gq/T/tmpQhSB5w TO /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.76-251712911846713/os_server.py
  722. <localhost> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.77-223781477062058/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.77-223781477062058/os_server.py && sleep 0'
  723. <cloud_provider_1=trystack> EXEC /bin/sh -c 'chmod u+x /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.76-251712911846713/ /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.76-251712911846713/os_server.py && sleep 0'
  724. <localhost> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.77-223781477062058/os_server.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.77-223781477062058/" > /dev/null 2>&1 && sleep 0'
  725. <cloud_provider_1=trystack> EXEC /bin/sh -c '/usr/bin/python /Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.76-251712911846713/os_server.py; rm -rf "/Users/wowbagger/.ansible/tmp/ansible-tmp-1478553358.76-251712911846713/" > /dev/null 2>&1 && sleep 0'
  726. changed: [localhost] => {
  727. "changed": true,
  728. "id": "b888ecf9-3ac8-4e38-8184-7591dc5cb1ba",
  729. "invocation": {
  730. "module_args": {
  731. "api_timeout": null,
  732. "auth": null,
  733. "auth_type": null,
  734. "auto_ip": false,
  735. "availability_zone": null,
  736. "boot_from_volume": false,
  737. "boot_volume": null,
  738. "cacert": null,
  739. "cert": null,
  740. "cloud": "trystack",
  741. "config_drive": false,
  742. "delete_fip": false,
  743. "endpoint_type": "public",
  744. "flavor": "1",
  745. "flavor_include": null,
  746. "flavor_ram": null,
  747. "floating_ip_pools": null,
  748. "floating_ips": null,
  749. "image": "672153ff-5266-43f0-9ac4-dda73a179a66",
  750. "image_exclude": "(deprecated)",
  751. "key": null,
  752. "key_name": "development_key",
  753. "meta": null,
  754. "name": "server1",
  755. "network": null,
  756. "nics": [],
  757. "region_name": null,
  758. "reuse_ips": true,
  759. "scheduler_hints": null,
  760. "security_groups": [
  761. "default"
  762. ],
  763. "state": "present",
  764. "terminate_volume": false,
  765. "timeout": 30000,
  766. "userdata": null,
  767. "verify": true,
  768. "volume_size": false,
  769. "volumes": [],
  770. "wait": false
  771. },
  772. "module_name": "os_server"
  773. },
  774. "openstack": {
  775. "HUMAN_ID": true,
  776. "NAME_ATTR": "name",
  777. "OS-DCF:diskConfig": "MANUAL",
  778. "OS-EXT-AZ:availability_zone": "nova",
  779. "OS-EXT-STS:power_state": 0,
  780. "OS-EXT-STS:task_state": "networking",
  781. "OS-EXT-STS:vm_state": "building",
  782. "OS-SRV-USG:launched_at": null,
  783. "OS-SRV-USG:terminated_at": null,
  784. "accessIPv4": "",
  785. "accessIPv6": "",
  786. "addresses": {},
  787. "adminPass": "4fGMq7AJpWdT",
  788. "az": "nova",
  789. "cloud": "trystack",
  790. "config_drive": "",
  791. "created": "2016-11-07T21:16:07Z",
  792. "flavor": {
  793. "id": "1",
  794. "name": "m1.tiny"
  795. },
  796. "hostId": "612d9d8ac60e79b6e26730a4b387028ca8764f71b7c669a420e268d2",
  797. "human_id": "server1",
  798. "id": "b888ecf9-3ac8-4e38-8184-7591dc5cb1ba",
  799. "image": {
  800. "id": "672153ff-5266-43f0-9ac4-dda73a179a66",
  801. "name": "Cirros-0.3.4"
  802. },
  803. "interface_ip": "",
  804. "key_name": "development_key",
  805. "metadata": {},
  806. "name": "server1",
  807. "networks": {},
  808. "os-extended-volumes:volumes_attached": [],
  809. "private_v4": "",
  810. "progress": 0,
  811. "public_v4": "",
  812. "public_v6": "",
  813. "region": "RegionOne",
  814. "request_ids": [
  815. "req-0641672f-a73c-4433-b209-e35bd8fb94f2"
  816. ],
  817. "security_groups": [
  818. {
  819. "description": "Default security group",
  820. "id": "e6f8fca6-4088-4517-8bc7-1bf5d90586e9",
  821. "name": "default",
  822. "security_group_rules": [
  823. {
  824. "direction": "ingress",
  825. "ethertype": "IPv4",
  826. "id": "25623099-065b-4948-a58f-6b8670759ffd",
  827. "port_range_max": null,
  828. "port_range_min": null,
  829. "protocol": null,
  830. "remote_ip_prefix": null,
  831. "security_group_id": "e6f8fca6-4088-4517-8bc7-1bf5d90586e9"
  832. }
  833. ]
  834. }
  835. ],
  836. "status": "BUILD",
  837. "tenant_id": "a7c353675ba941d7ac1bfe12aecdf499",
  838. "updated": "2016-11-07T21:16:07Z",
  839. "user_id": "866c25595d4b4b51a4aeef4cee5a4531",
  840. "volumes": []
  841. },
  842. "server": {
  843. "HUMAN_ID": true,
  844. "NAME_ATTR": "name",
  845. "OS-DCF:diskConfig": "MANUAL",
  846. "OS-EXT-AZ:availability_zone": "nova",
  847. "OS-EXT-STS:power_state": 0,
  848. "OS-EXT-STS:task_state": "networking",
  849. "OS-EXT-STS:vm_state": "building",
  850. "OS-SRV-USG:launched_at": null,
  851. "OS-SRV-USG:terminated_at": null,
  852. "accessIPv4": "",
  853. "accessIPv6": "",
  854. "addresses": {},
  855. "adminPass": "4fGMq7AJpWdT",
  856. "az": "nova",
  857. "cloud": "trystack",
  858. "config_drive": "",
  859. "created": "2016-11-07T21:16:07Z",
  860. "flavor": {
  861. "id": "1",
  862. "name": "m1.tiny"
  863. },
  864. "hostId": "612d9d8ac60e79b6e26730a4b387028ca8764f71b7c669a420e268d2",
  865. "human_id": "server1",
  866. "id": "b888ecf9-3ac8-4e38-8184-7591dc5cb1ba",
  867. "image": {
  868. "id": "672153ff-5266-43f0-9ac4-dda73a179a66",
  869. "name": "Cirros-0.3.4"
  870. },
  871. "interface_ip": "",
  872. "key_name": "development_key",
  873. "metadata": {},
  874. "name": "server1",
  875. "networks": {},
  876. "os-extended-volumes:volumes_attached": [],
  877. "private_v4": "",
  878. "progress": 0,
  879. "public_v4": "",
  880. "public_v6": "",
  881. "region": "RegionOne",
  882. "request_ids": [
  883. "req-0641672f-a73c-4433-b209-e35bd8fb94f2"
  884. ],
  885. "security_groups": [
  886. {
  887. "description": "Default security group",
  888. "id": "e6f8fca6-4088-4517-8bc7-1bf5d90586e9",
  889. "name": "default",
  890. "security_group_rules": [
  891. {
  892. "direction": "ingress",
  893. "ethertype": "IPv4",
  894. "id": "25623099-065b-4948-a58f-6b8670759ffd",
  895. "port_range_max": null,
  896. "port_range_min": null,
  897. "protocol": null,
  898. "remote_ip_prefix": null,
  899. "security_group_id": "e6f8fca6-4088-4517-8bc7-1bf5d90586e9"
  900. }
  901. ]
  902. }
  903. ],
  904. "status": "BUILD",
  905. "tenant_id": "a7c353675ba941d7ac1bfe12aecdf499",
  906. "updated": "2016-11-07T21:16:07Z",
  907. "user_id": "866c25595d4b4b51a4aeef4cee5a4531",
  908. "volumes": []
  909. }
  910. }
  911. changed: [cloud_provider_1=trystack] => {
  912. "changed": true,
  913. "id": "e9e759c8-d0ad-4ae4-8942-b04946380f66",
  914. "invocation": {
  915. "module_args": {
  916. "api_timeout": null,
  917. "auth": null,
  918. "auth_type": null,
  919. "auto_ip": false,
  920. "availability_zone": null,
  921. "boot_from_volume": false,
  922. "boot_volume": null,
  923. "cacert": null,
  924. "cert": null,
  925. "cloud": "trystack",
  926. "config_drive": false,
  927. "delete_fip": false,
  928. "endpoint_type": "public",
  929. "flavor": "1",
  930. "flavor_include": null,
  931. "flavor_ram": null,
  932. "floating_ip_pools": null,
  933. "floating_ips": null,
  934. "image": "672153ff-5266-43f0-9ac4-dda73a179a66",
  935. "image_exclude": "(deprecated)",
  936. "key": null,
  937. "key_name": "development_key",
  938. "meta": null,
  939. "name": "server1",
  940. "network": null,
  941. "nics": [],
  942. "region_name": null,
  943. "reuse_ips": true,
  944. "scheduler_hints": null,
  945. "security_groups": [
  946. "default"
  947. ],
  948. "state": "present",
  949. "terminate_volume": false,
  950. "timeout": 30000,
  951. "userdata": null,
  952. "verify": true,
  953. "volume_size": false,
  954. "volumes": [],
  955. "wait": false
  956. },
  957. "module_name": "os_server"
  958. },
  959. "openstack": {
  960. "HUMAN_ID": true,
  961. "NAME_ATTR": "name",
  962. "OS-DCF:diskConfig": "MANUAL",
  963. "OS-EXT-AZ:availability_zone": "",
  964. "OS-EXT-STS:power_state": 0,
  965. "OS-EXT-STS:task_state": null,
  966. "OS-EXT-STS:vm_state": "building",
  967. "OS-SRV-USG:launched_at": null,
  968. "OS-SRV-USG:terminated_at": null,
  969. "accessIPv4": "",
  970. "accessIPv6": "",
  971. "addresses": {},
  972. "adminPass": "jGTP9n6wg7hF",
  973. "cloud": "trystack",
  974. "config_drive": "",
  975. "created": "2016-11-07T21:16:06Z",
  976. "flavor": {
  977. "id": "1",
  978. "name": "m1.tiny"
  979. },
  980. "hostId": "",
  981. "human_id": "server1",
  982. "id": "e9e759c8-d0ad-4ae4-8942-b04946380f66",
  983. "image": {
  984. "id": "672153ff-5266-43f0-9ac4-dda73a179a66",
  985. "name": "Cirros-0.3.4"
  986. },
  987. "interface_ip": "",
  988. "key_name": "development_key",
  989. "metadata": {},
  990. "name": "server1",
  991. "networks": {},
  992. "os-extended-volumes:volumes_attached": [],
  993. "private_v4": "",
  994. "progress": 0,
  995. "public_v4": "",
  996. "public_v6": "",
  997. "region": "RegionOne",
  998. "request_ids": [
  999. "req-26ef4a53-5101-4fae-8eb9-c4667556a3c1"
  1000. ],
  1001. "security_groups": [
  1002. {
  1003. "description": "Default security group",
  1004. "id": "e6f8fca6-4088-4517-8bc7-1bf5d90586e9",
  1005. "name": "default",
  1006. "security_group_rules": [
  1007. {
  1008. "direction": "ingress",
  1009. "ethertype": "IPv4",
  1010. "id": "25623099-065b-4948-a58f-6b8670759ffd",
  1011. "port_range_max": null,
  1012. "port_range_min": null,
  1013. "protocol": null,
  1014. "remote_ip_prefix": null,
  1015. "security_group_id": "e6f8fca6-4088-4517-8bc7-1bf5d90586e9"
  1016. }
  1017. ]
  1018. }
  1019. ],
  1020. "status": "BUILD",
  1021. "tenant_id": "a7c353675ba941d7ac1bfe12aecdf499",
  1022. "updated": "2016-11-07T21:16:07Z",
  1023. "user_id": "866c25595d4b4b51a4aeef4cee5a4531",
  1024. "volumes": []
  1025. },
  1026. "server": {
  1027. "HUMAN_ID": true,
  1028. "NAME_ATTR": "name",
  1029. "OS-DCF:diskConfig": "MANUAL",
  1030. "OS-EXT-AZ:availability_zone": "",
  1031. "OS-EXT-STS:power_state": 0,
  1032. "OS-EXT-STS:task_state": null,
  1033. "OS-EXT-STS:vm_state": "building",
  1034. "OS-SRV-USG:launched_at": null,
  1035. "OS-SRV-USG:terminated_at": null,
  1036. "accessIPv4": "",
  1037. "accessIPv6": "",
  1038. "addresses": {},
  1039. "adminPass": "jGTP9n6wg7hF",
  1040. "cloud": "trystack",
  1041. "config_drive": "",
  1042. "created": "2016-11-07T21:16:06Z",
  1043. "flavor": {
  1044. "id": "1",
  1045. "name": "m1.tiny"
  1046. },
  1047. "hostId": "",
  1048. "human_id": "server1",
  1049. "id": "e9e759c8-d0ad-4ae4-8942-b04946380f66",
  1050. "image": {
  1051. "id": "672153ff-5266-43f0-9ac4-dda73a179a66",
  1052. "name": "Cirros-0.3.4"
  1053. },
  1054. "interface_ip": "",
  1055. "key_name": "development_key",
  1056. "metadata": {},
  1057. "name": "server1",
  1058. "networks": {},
  1059. "os-extended-volumes:volumes_attached": [],
  1060. "private_v4": "",
  1061. "progress": 0,
  1062. "public_v4": "",
  1063. "public_v6": "",
  1064. "region": "RegionOne",
  1065. "request_ids": [
  1066. "req-26ef4a53-5101-4fae-8eb9-c4667556a3c1"
  1067. ],
  1068. "security_groups": [
  1069. {
  1070. "description": "Default security group",
  1071. "id": "e6f8fca6-4088-4517-8bc7-1bf5d90586e9",
  1072. "name": "default",
  1073. "security_group_rules": [
  1074. {
  1075. "direction": "ingress",
  1076. "ethertype": "IPv4",
  1077. "id": "25623099-065b-4948-a58f-6b8670759ffd",
  1078. "port_range_max": null,
  1079. "port_range_min": null,
  1080. "protocol": null,
  1081. "remote_ip_prefix": null,
  1082. "security_group_id": "e6f8fca6-4088-4517-8bc7-1bf5d90586e9"
  1083. }
  1084. ]
  1085. }
  1086. ],
  1087. "status": "BUILD",
  1088. "tenant_id": "a7c353675ba941d7ac1bfe12aecdf499",
  1089. "updated": "2016-11-07T21:16:07Z",
  1090. "user_id": "866c25595d4b4b51a4aeef4cee5a4531",
  1091. "volumes": []
  1092. }
  1093. }
  1094.  
  1095. PLAY RECAP *********************************************************************
  1096. cloud_provider_1=trystack : ok=8 changed=1 unreachable=0 failed=0
  1097. localhost : ok=8 changed=1 unreachable=0 failed=0
  1098.  
  1099. Copy / paste from trystack:
  1100.  
  1101. Name
  1102. server1
  1103. ID
  1104. b888ecf9-3ac8-4e38-8184-7591dc5cb1ba
  1105. Status
  1106. Active
  1107. Availability Zone
  1108. nova
  1109. Created
  1110. 8 Nov 2016, 5:16 a.m.
  1111. Time Since Created
  1112. 1 minute
  1113.  
  1114. Name
  1115. server1
  1116. ID
  1117. e9e759c8-d0ad-4ae4-8942-b04946380f66
  1118. Status
  1119. Active
  1120. Availability Zone
  1121. nova
  1122. Created
  1123. 8 Nov 2016, 5:16 a.m.
  1124. Time Since Created
  1125. 1 minute
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement