· 6 years ago · Oct 25, 2019, 06:56 AM
1<doc> Failed to connect to the host via ssh:
2fatal: [doc]: FAILED! => {
3 "changed": true,
4 "cmd": [
5 "ansible-playbook",
6 "-i",
7 "inventory",
8 "install.yml",
9 "--extra-vars",
10 "@~/awx/extra-vars.yaml"
11 ],
12 "delta": "0:00:06.900639",
13 "end": "2019-10-24 10:40:16.610214",
14 "invocation": {
15 "module_args": {
16 "_raw_params": "ansible-playbook -i inventory install.yml --extra-vars \"@~/awx/extra-vars.yaml\"",
17 "_uses_shell": false,
18 "argv": null,
19 "chdir": "/root/awx/installer",
20 "creates": "/etc/awx_playbook_complete",
21 "executable": null,
22 "removes": null,
23 "stdin": null,
24 "stdin_add_newline": true,
25 "strip_empty_ends": true,
26 "warn": true
27 }
28 },
29 "rc": 2,
30 "start": "2019-10-24 10:40:09.709575"
31}
32
33STDOUT:
34
35
36PLAY [Build and deploy AWX] ****************************************************
37
38TASK [Gathering Facts] *********************************************************
39ok: [localhost]
40
41TASK [check_vars : include_tasks] **********************************************
42skipping: [localhost]
43
44TASK [check_vars : include_tasks] **********************************************
45included: /root/awx/installer/roles/check_vars/tasks/check_docker.yml for localhost
46
47TASK [check_vars : postgres_data_dir should be defined] ************************
48ok: [localhost] => {
49 "changed": false,
50 "msg": "All assertions passed"
51}
52
53TASK [check_vars : host_port should be defined] ********************************
54ok: [localhost] => {
55 "changed": false,
56 "msg": "All assertions passed"
57}
58
59TASK [image_build : Set global version if not provided] ************************
60skipping: [localhost]
61
62TASK [image_build : Verify awx-logos directory exists for official install] ****
63skipping: [localhost]
64
65TASK [image_build : Copy logos for inclusion in sdist] *************************
66skipping: [localhost]
67
68TASK [image_build : Set sdist file name] ***************************************
69skipping: [localhost]
70
71TASK [image_build : AWX Distribution] ******************************************
72skipping: [localhost]
73
74TASK [image_build : Stat distribution file] ************************************
75skipping: [localhost]
76
77TASK [image_build : Clean distribution] ****************************************
78skipping: [localhost]
79
80TASK [image_build : Build sdist builder image] *********************************
81skipping: [localhost]
82
83TASK [image_build : Build AWX distribution using container] ********************
84skipping: [localhost]
85
86TASK [image_build : Build AWX distribution locally] ****************************
87skipping: [localhost]
88
89TASK [image_build : Set docker build base path] ********************************
90skipping: [localhost]
91
92TASK [image_build : Set awx_web image name] ************************************
93skipping: [localhost]
94
95TASK [image_build : Set awx_task image name] ***********************************
96skipping: [localhost]
97
98TASK [image_build : Ensure directory exists] ***********************************
99skipping: [localhost]
100
101TASK [image_build : Stage sdist] ***********************************************
102skipping: [localhost]
103
104TASK [image_build : Template web Dockerfile] ***********************************
105skipping: [localhost]
106
107TASK [image_build : Template task Dockerfile] **********************************
108skipping: [localhost]
109
110TASK [image_build : Stage launch_awx] ******************************************
111skipping: [localhost]
112
113TASK [image_build : Stage launch_awx_task] *************************************
114skipping: [localhost]
115
116TASK [image_build : Stage nginx.conf] ******************************************
117skipping: [localhost]
118
119TASK [image_build : Stage supervisor.conf] *************************************
120skipping: [localhost]
121
122TASK [image_build : Stage supervisor_task.conf] ********************************
123skipping: [localhost]
124
125TASK [image_build : Stage settings.py] *****************************************
126skipping: [localhost]
127
128TASK [image_build : Stage requirements] ****************************************
129skipping: [localhost]
130
131TASK [image_build : Stage config watcher] **************************************
132skipping: [localhost]
133
134TASK [image_build : Stage Makefile] ********************************************
135skipping: [localhost]
136
137TASK [image_build : Stage ansible repo] ****************************************
138skipping: [localhost]
139
140TASK [image_build : Stage ansible repo key] ************************************
141skipping: [localhost]
142
143TASK [image_build : Build base web image] **************************************
144skipping: [localhost]
145
146TASK [image_build : Build base task image] *************************************
147skipping: [localhost]
148
149TASK [image_build : Tag task and web images as latest] *************************
150skipping: [localhost]
151
152TASK [image_build : Clean docker base directory] *******************************
153skipping: [localhost]
154
155TASK [image_push : Authenticate with Docker registry if registry password given] ***
156skipping: [localhost]
157
158TASK [image_push : Remove web image] *******************************************
159skipping: [localhost]
160
161TASK [image_push : Remove task image] ******************************************
162skipping: [localhost]
163
164TASK [image_push : Tag and push web image to registry] *************************
165skipping: [localhost]
166
167TASK [image_push : Tag and push task image to registry] ************************
168skipping: [localhost]
169
170TASK [image_push : Set full image path for Registry] ***************************
171skipping: [localhost]
172
173TASK [kubernetes : fail] *******************************************************
174skipping: [localhost]
175
176TASK [kubernetes : include_tasks] **********************************************
177skipping: [localhost] => (item=openshift_auth.yml)
178skipping: [localhost] => (item=openshift.yml)
179
180TASK [kubernetes : include_tasks] **********************************************
181skipping: [localhost] => (item=kubernetes_auth.yml)
182skipping: [localhost] => (item=kubernetes.yml)
183
184TASK [kubernetes : Use kubectl or oc] ******************************************
185skipping: [localhost]
186
187TASK [kubernetes : set_fact] ***************************************************
188skipping: [localhost]
189
190TASK [kubernetes : Record deployment size] *************************************
191skipping: [localhost]
192
193TASK [kubernetes : Set expected post-deployment Replicas value] ****************
194skipping: [localhost]
195
196TASK [kubernetes : Delete existing Deployment] *********************************
197skipping: [localhost]
198
199TASK [kubernetes : Get Postgres Service Detail] ********************************
200skipping: [localhost]
201
202TASK [kubernetes : Template PostgreSQL Deployment (OpenShift)] *****************
203skipping: [localhost]
204
205TASK [kubernetes : Deploy and Activate Postgres (OpenShift)] *******************
206skipping: [localhost]
207
208TASK [kubernetes : Template PostgreSQL Deployment (Kubernetes)] ****************
209skipping: [localhost]
210
211TASK [kubernetes : Deploy and Activate Postgres (Kubernetes)] ******************
212skipping: [localhost]
213
214TASK [kubernetes : Set postgresql hostname to helm package service (Kubernetes)] ***
215skipping: [localhost]
216
217TASK [kubernetes : Wait for Postgres to activate] ******************************
218skipping: [localhost]
219
220TASK [kubernetes : Set task image name] ****************************************
221skipping: [localhost]
222
223TASK [kubernetes : Set web image name] *****************************************
224skipping: [localhost]
225
226TASK [kubernetes : Render deployment templates] ********************************
227skipping: [localhost] => (item=None)
228skipping: [localhost] => (item=None)
229skipping: [localhost] => (item=None)
230skipping: [localhost]
231
232TASK [kubernetes : Apply Deployment] *******************************************
233skipping: [localhost]
234
235TASK [kubernetes : Delete any existing management pod] *************************
236skipping: [localhost]
237
238TASK [kubernetes : Template management pod] ************************************
239skipping: [localhost]
240
241TASK [kubernetes : Create management pod] **************************************
242skipping: [localhost]
243
244TASK [kubernetes : Wait for management pod to start] ***************************
245skipping: [localhost]
246
247TASK [kubernetes : Migrate database] *******************************************
248skipping: [localhost]
249
250TASK [kubernetes : Check for Tower Super users] ********************************
251skipping: [localhost]
252
253TASK [kubernetes : create django super user if it does not exist] **************
254skipping: [localhost]
255
256TASK [kubernetes : update django super user password] **************************
257skipping: [localhost]
258
259TASK [kubernetes : Create the default organization if it is needed.] ***********
260skipping: [localhost]
261
262TASK [kubernetes : Delete management pod] **************************************
263skipping: [localhost]
264
265TASK [kubernetes : Scale up deployment] ****************************************
266skipping: [localhost]
267
268TASK [local_docker : Export Docker web image if it isnt local and there isnt a registry defined] ***
269skipping: [localhost]
270
271TASK [local_docker : Export Docker task image if it isnt local and there isnt a registry defined] ***
272skipping: [localhost]
273
274TASK [local_docker : Set docker base path] *************************************
275skipping: [localhost]
276
277TASK [local_docker : Ensure directory exists] **********************************
278skipping: [localhost]
279
280TASK [local_docker : Copy web image to docker execution] ***********************
281skipping: [localhost]
282
283TASK [local_docker : Copy task image to docker execution] **********************
284skipping: [localhost]
285
286TASK [local_docker : Load web image] *******************************************
287skipping: [localhost]
288
289TASK [local_docker : Load task image] ******************************************
290skipping: [localhost]
291
292TASK [local_docker : Set full image path for local install] ********************
293skipping: [localhost]
294
295TASK [local_docker : Set DockerHub Image Paths] ********************************
296ok: [localhost]
297
298TASK [local_docker : Create /tmp/awxcompose directory] *************************
299ok: [localhost]
300
301TASK [local_docker : Create Docker Compose Configuration] **********************
302ok: [localhost] => (item=environment.sh)
303ok: [localhost] => (item=credentials.py)
304ok: [localhost] => (item=docker-compose.yml)
305
306TASK [local_docker : Render SECRET_KEY file] ***********************************
307ok: [localhost]
308
309TASK [local_docker : Start the containers] *************************************
310fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to load docker-compose. Try `pip install docker-compose`. Error: Traceback (most recent call last):\n File \"/tmp/ansible_docker_service_payload_8qWz_L/__main__.py\", line 475, in <module>\n from compose import __version__ as compose_version\nImportError: No module named compose\n"}
311
312PLAY RECAP *********************************************************************
313localhost : ok=8 changed=0 unreachable=0 failed=1 skipped=78 rescued=0 ignored=0
314
315
316STDERR:
317
318[DEPRECATION WARNING]: The 'docker_service' module has been renamed to
319'docker_compose'.. This feature will be removed in version 2.12. Deprecation
320warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
321
322
323MSG:
324
325non-zero return code