· 6 years ago · Jan 31, 2020, 11:22 AM
1pi@raspberrypi:~ $ curl -sfL https://gitlab.com/bibliosansfrontieres/olip/olip-deploy/raw/master/go.sh | sudo bash -s -- --name olip.local --url olip.local --descriptor http://drop.bsf-intranet.org/olip/conf-arm32v7
2[+] Check Internet connection...
3Done.
4[+] Install PPA...
5Executing: /tmp/apt-key-gpghome.0rCdPoPYx6/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
6gpg: key 93C4A3FD7BB9C367: public key "Launchpad PPA for Ansible, Inc." imported
7gpg: Total number processed: 1
8gpg: imported: 1
9[+] Update repository...
10[+] Update Ansible...
11Selecting previously unselected package python-markupsafe.
12(Reading database ... 39798 files and directories currently installed.)
13Preparing to unpack .../00-python-markupsafe_1.1.0-1_armhf.deb ...
14Unpacking python-markupsafe (1.1.0-1) ...
15Selecting previously unselected package python-jinja2.
16Preparing to unpack .../01-python-jinja2_2.10-2_all.deb ...
17Unpacking python-jinja2 (2.10-2) ...
18Selecting previously unselected package libyaml-0-2:armhf.
19Preparing to unpack .../02-libyaml-0-2_0.2.1-1_armhf.deb ...
20Unpacking libyaml-0-2:armhf (0.2.1-1) ...
21Selecting previously unselected package python-yaml.
22Preparing to unpack .../03-python-yaml_3.13-2_armhf.deb ...
23Unpacking python-yaml (3.13-2) ...
24Selecting previously unselected package python-cffi-backend.
25Preparing to unpack .../04-python-cffi-backend_1.12.2-1_armhf.deb ...
26Unpacking python-cffi-backend (1.12.2-1) ...
27Selecting previously unselected package python-six.
28Preparing to unpack .../05-python-six_1.12.0-1_all.deb ...
29Unpacking python-six (1.12.0-1) ...
30Selecting previously unselected package python-bcrypt.
31Preparing to unpack .../06-python-bcrypt_3.1.6-1_armhf.deb ...
32Unpacking python-bcrypt (3.1.6-1) ...
33Selecting previously unselected package python-asn1crypto.
34Preparing to unpack .../07-python-asn1crypto_0.24.0-1_all.deb ...
35Unpacking python-asn1crypto (0.24.0-1) ...
36Selecting previously unselected package python-enum34.
37Preparing to unpack .../08-python-enum34_1.1.6-2_all.deb ...
38Unpacking python-enum34 (1.1.6-2) ...
39Selecting previously unselected package python-ipaddress.
40Preparing to unpack .../09-python-ipaddress_1.0.17-1_all.deb ...
41Unpacking python-ipaddress (1.0.17-1) ...
42Selecting previously unselected package python-cryptography.
43Preparing to unpack .../10-python-cryptography_2.6.1-3+deb10u2_armhf.deb ...
44Unpacking python-cryptography (2.6.1-3+deb10u2) ...
45Selecting previously unselected package libsodium23:armhf.
46Preparing to unpack .../11-libsodium23_1.0.17-1_armhf.deb ...
47Unpacking libsodium23:armhf (1.0.17-1) ...
48Selecting previously unselected package python-nacl.
49Preparing to unpack .../12-python-nacl_1.3.0-2_armhf.deb ...
50Unpacking python-nacl (1.3.0-2) ...
51Selecting previously unselected package python-pyasn1.
52Preparing to unpack .../13-python-pyasn1_0.4.2-3_all.deb ...
53Unpacking python-pyasn1 (0.4.2-3) ...
54Selecting previously unselected package python-paramiko.
55Preparing to unpack .../14-python-paramiko_2.4.2-0.1_all.deb ...
56Unpacking python-paramiko (2.4.2-0.1) ...
57Selecting previously unselected package python-httplib2.
58Preparing to unpack .../15-python-httplib2_0.11.3-2_all.deb ...
59Unpacking python-httplib2 (0.11.3-2) ...
60Selecting previously unselected package python-crypto.
61Preparing to unpack .../16-python-crypto_2.6.1-9+b1_armhf.deb ...
62Unpacking python-crypto (2.6.1-9+b1) ...
63Selecting previously unselected package python-pkg-resources.
64Preparing to unpack .../17-python-pkg-resources_40.8.0-1_all.deb ...
65Unpacking python-pkg-resources (40.8.0-1) ...
66Selecting previously unselected package python-setuptools.
67Preparing to unpack .../18-python-setuptools_40.8.0-1_all.deb ...
68Unpacking python-setuptools (40.8.0-1) ...
69Selecting previously unselected package sshpass.
70Preparing to unpack .../19-sshpass_1.06-1_armhf.deb ...
71Unpacking sshpass (1.06-1) ...
72Selecting previously unselected package ansible.
73Preparing to unpack .../20-ansible_2.9.4-1ppa~trusty_all.deb ...
74Unpacking ansible (2.9.4-1ppa~trusty) ...
75Selecting previously unselected package libcurl3-gnutls:armhf.
76Preparing to unpack .../21-libcurl3-gnutls_7.64.0-4_armhf.deb ...
77Unpacking libcurl3-gnutls:armhf (7.64.0-4) ...
78Selecting previously unselected package liberror-perl.
79Preparing to unpack .../22-liberror-perl_0.17027-2_all.deb ...
80Unpacking liberror-perl (0.17027-2) ...
81Selecting previously unselected package git-man.
82Preparing to unpack .../23-git-man_1%3a2.20.1-2+deb10u1_all.deb ...
83Unpacking git-man (1:2.20.1-2+deb10u1) ...
84Selecting previously unselected package git.
85Preparing to unpack .../24-git_1%3a2.20.1-2+deb10u1_armhf.deb ...
86Unpacking git (1:2.20.1-2+deb10u1) ...
87Setting up python-enum34 (1.1.6-2) ...
88Setting up python-crypto (2.6.1-9+b1) ...
89Setting up libsodium23:armhf (1.0.17-1) ...
90Setting up libyaml-0-2:armhf (0.2.1-1) ...
91Setting up python-pkg-resources (40.8.0-1) ...
92Setting up python-httplib2 (0.11.3-2) ...
93Setting up libcurl3-gnutls:armhf (7.64.0-4) ...
94Setting up python-asn1crypto (0.24.0-1) ...
95Setting up sshpass (1.06-1) ...
96Setting up python-six (1.12.0-1) ...
97Setting up liberror-perl (0.17027-2) ...
98Setting up python-pyasn1 (0.4.2-3) ...
99Setting up python-setuptools (40.8.0-1) ...
100Setting up python-markupsafe (1.1.0-1) ...
101Setting up git-man (1:2.20.1-2+deb10u1) ...
102Setting up python-yaml (3.13-2) ...
103Setting up python-ipaddress (1.0.17-1) ...
104Setting up python-cffi-backend (1.12.2-1) ...
105Setting up python-cryptography (2.6.1-3+deb10u2) ...
106Setting up python-bcrypt (3.1.6-1) ...
107Setting up python-jinja2 (2.10-2) ...
108Setting up python-nacl (1.3.0-2) ...
109Setting up python-paramiko (2.4.2-0.1) ...
110Setting up git (1:2.20.1-2+deb10u1) ...
111Setting up ansible (2.9.4-1ppa~trusty) ...
112Processing triggers for man-db (2.8.5-2) ...
113Processing triggers for libc-bin (2.28-10+rpi1) ...
114Done.
115[+] Checking for internet connectivity...
116[+] Check Internet connection...
117Done.
118Done.
119[+] Clone ansiblecap repo...
120Cloning into 'local'...
121remote: Enumerating objects: 1603, done.
122remote: Counting objects: 100% (1603/1603), done.
123remote: Compressing objects: 100% (644/644), done.
124remote: Total 1603 (delta 865), reused 1559 (delta 838), pack-reused 0
125Receiving objects: 100% (1603/1603), 1.19 MiB | 1.41 MiB/s, done.
126Resolving deltas: 100% (865/865), done.
127Done.
128[+] Start configuration... tail -f /var/log/ansible-pull.log for logs
129Starting Ansible Pull at 2020-01-31 10:32:21
130/usr/bin/ansible-pull --purge -C 1.8.0 -d /var/lib/ansible/local -i hosts -U https://gitlab.com/bibliosansfrontieres/olip/olip-deploy.git main.yml --extra-vars end_user_server_name=olip.local end_user_domain_name=olip.local end_user_olip_file_descriptor=http://drop.bsf-intranet.org/olip/conf-arm32v7
131[DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to
132allow bad characters in group names by default, this will change, but still be
133user configurable on deprecation. This feature will be removed in version 2.10.
134 Deprecation warnings can be disabled by setting deprecation_warnings=False in
135ansible.cfg.
136[WARNING]: Invalid characters were found in group names but not replaced, use
137-vvvv to see details
138[WARNING]: Could not match supplied host pattern, ignoring: raspberrypi
139[WARNING]: Platform linux on host localhost is using the discovered Python
140interpreter at /usr/bin/python, but future installation of another Python
141interpreter could change this. See https://docs.ansible.com/ansible/2.9/referen
142ce_appendices/interpreter_discovery.html for more information.
143localhost | SUCCESS => {
144 "after": "c4e6122a5de18cb5502b74e12fd01cd3732a660d",
145 "ansible_facts": {
146 "discovered_interpreter_python": "/usr/bin/python"
147 },
148 "before": "c4e6122a5de18cb5502b74e12fd01cd3732a660d",
149 "changed": false,
150 "remote_url_changed": false
151}
152[DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to
153allow bad characters in group names by default, this will change, but still be
154user configurable on deprecation. This feature will be removed in version 2.10.
155 Deprecation warnings can be disabled by setting deprecation_warnings=False in
156ansible.cfg.
157[WARNING]: Invalid characters were found in group names but not replaced, use
158-vvvv to see details
159[WARNING]: Could not match supplied host pattern, ignoring: raspberrypi
160
161PLAY [all] *********************************************************************
162
163TASK [Gathering Facts] *********************************************************
164[WARNING]: Platform linux on host localhost is using the discovered Python
165interpreter at /usr/bin/python, but future installation of another Python
166interpreter could change this. See https://docs.ansible.com/ansible/2.9/referen
167cok: [locale_appendichost]
168es/interpreter_discovery.html for more information.
169
170TASK [setup_system : debug] ****************************************************
171ok: [localhost] => {
172 "msg": "Start OLIP install 2020-01-31 - 10:32:50 - with following catalog : http://drop.bsf-intranet.org/olip/conf-arm32v7"
173}
174
175TASK [setup_system : Do not install newer Kernel before installing Balena-engine] ***
176changed: [localhost]
177
178TASK [setup_system : Update and upgrade apt packages] **************************
179[WARNING]: The value True (type bool) in a string field was converted to
180u'True' (type string). If this does not look like what you expect, quote the
181entire value to ensure it does not change.
182[WARNING]: Updating cache and auto-installing missing dependency: python-apt
183changed: [localhost]
184
185TASK [setup_system : Fix broken package] ***************************************
186changed: [localhost]
187
188TASK [setup_system : Install required package] *********************************
189changed: [localhost]
190
191TASK [setup_system : Remove Kernel pinning] ************************************
192changed: [localhost]
193
194TASK [setup_system : Ensure locale en_US.UTF-8 locale is present] **************
195changed: [localhost]
196
197TASK [setup_system : Set a server name with hostnamectl] ***********************
198changed: [localhost]
199
200TASK [setup_system : reload ansible_hostname] **********************************
201ok: [localhost]
202
203TASK [setup_system : Creates ipfs mount points] ********************************
204changed: [localhost] => (item=/ipfs)
205changed: [localhost] => (item=/ipns)
206
207TASK [setup_system : Set device index] *****************************************
208skipping: [localhost] => (item={u'block_used': 106063, u'uuid': u'5203-DB74', u'size_total': 264289280, u'block_total': 516190, u'mount': u'/boot', u'block_available': 410127, u'size_available': 209985024, u'fstype': u'vfat', u'inode_total': 0, u'inode_available': 0, u'device': u'/dev/mmcblk0p1', u'inode_used': 0, u'block_size': 512, u'options': u'rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro'})
209skipping: [localhost] => (item={u'block_used': 678203, u'uuid': u'N/A', u'size_total': 30507495424L, u'block_total': 7448119, u'mount': u'/', u'block_available': 6769916, u'size_available': 27729575936L, u'fstype': u'ext4', u'inode_total': 1867136, u'inode_available': 1808831, u'device': u'/dev/root', u'inode_used': 58305, u'block_size': 4096, u'options': u'rw,noatime'})
210
211TASK [setup_system : Set mount index] ******************************************
212skipping: [localhost] => (item={u'block_used': 106063, u'uuid': u'5203-DB74', u'size_total': 264289280, u'block_total': 516190, u'mount': u'/boot', u'block_available': 410127, u'size_available': 209985024, u'fstype': u'vfat', u'inode_total': 0, u'inode_available': 0, u'device': u'/dev/mmcblk0p1', u'inode_used': 0, u'block_size': 512, u'options': u'rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro'})
213skipping: [localhost] => (item={u'block_used': 678203, u'uuid': u'N/A', u'size_total': 30507495424L, u'block_total': 7448119, u'mount': u'/', u'block_available': 6769916, u'size_available': 27729575936L, u'fstype': u'ext4', u'inode_total': 1867136, u'inode_available': 1808831, u'device': u'/dev/root', u'inode_used': 58305, u'block_size': 4096, u'options': u'rw,noatime'})
214
215TASK [setup_system : Register if an external hard drive is present on the server (will store Docker image and data)] ***
216skipping: [localhost]
217
218TASK [setup_system : debug] ****************************************************
219ok: [localhost] => {
220 "msg": "External hardrive detected False"
221}
222
223TASK [balena-engine : Include arch variables] **********************************
224ok: [localhost]
225
226TASK [balena-engine : Download balenad binary & extract balena] ****************
227changed: [localhost]
228
229TASK [balena-engine : Ensure group balena exists] ******************************
230changed: [localhost]
231
232TASK [balena-engine : Copy systemd unit service] *******************************
233changed: [localhost]
234
235TASK [balena-engine : Copy systemd unit service] *******************************
236changed: [localhost]
237
238TASK [balena-engine : Create balena-engine directory] **************************
239changed: [localhost]
240
241TASK [balena-engine : Enable overlay] ******************************************
242skipping: [localhost]
243
244TASK [balena-engine : Enable balena service] ***********************************
245changed: [localhost]
246
247TASK [balena-engine : Install python-backports.ssl-match-hostname for Docker python lib] ***
248changed: [localhost]
249
250TASK [balena-engine : Install a Python library for the Docker Engine API] ******
251changed: [localhost]
252
253TASK [olip : Include arch variables] *******************************************
254ok: [localhost]
255
256TASK [olip : If external HDD set new OLIP storage directory] *******************
257skipping: [localhost]
258
259TASK [olip : Create a symbolic link for OLIP storage directory] ****************
260skipping: [localhost]
261
262TASK [olip : Create nginx log folder] ******************************************
263changed: [localhost]
264
265TASK [olip : Create core network] **********************************************
266[DEPRECATION WARNING]: Param 'ipam_options' is deprecated. See the module docs
267for more information. This feature will be removed in version 2.12. Deprecation
268 warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
269changed: [localhost]
270
271TASK [olip : Install API] ******************************************************
272[DEPRECATION WARNING]: Please note that docker_container handles networks
273slightly different than docker CLI. If you specify networks, the default
274network will still be attached as the first network. (You can specify
275purge_networks to remove all networks not explicitly listed.) This behavior
276will change in Ansible 2.12. You can change the behavior now by setting the new
277 `networks_cli_compatible` option to `yes`, and remove this warning by setting
278it to `no`. This feature will be removed in version 2.12. Deprecation warnings
279can be disabled by setting deprecation_warnings=False in ansible.cfg.
280changed: [localhost]
281
282TASK [olip : Install Dashboard] ************************************************
283changed: [localhost]
284
285TASK [olip : Update descriptor.json with the latest version available on internet] ***
286changed: [localhost]
287
288TASK [hotspot : Including hotspot task if on raspberry pi] *********************
289included: /var/lib/ansible/local/roles/hotspot/tasks/hotspot.yml for localhost
290
291TASK [hotspot : Installing hostapd and dnsmasq] ********************************
292[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via
293squash_actions is deprecated. Instead of using a loop to supply multiple items
294and specifying `name: "{{ item }}"`, please use `name: ['hostapd', 'dnsmasq']`
295and remove the loop. This feature will be removed in version 2.11. Deprecation
296warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
297changed: [localhost] => (item=[u'hostapd', u'dnsmasq'])
298
299TASK [hotspot : Create hostapd.conf file] **************************************
300changed: [localhost]
301
302TASK [hotspot : Configuring wlan0] *********************************************
303changed: [localhost]
304
305TASK [hotspot : Backup dnsmasq config file] ************************************
306changed: [localhost]
307
308TASK [hotspot : Create new dnsmasq configuration file] *************************
309[WARNING]: Consider using the file module with state=touch rather than running
310'touch'. If you need to use command because file is insufficient you can add
311'warn: false' to this command task or set 'command_warnings=False' in
312ansible.cfg to get rid of this message.
313changed: [localhost]
314
315TASK [hotspot : Update dnsmasq configuration file] *****************************
316changed: [localhost]
317
318TASK [hotspot : Configuring hostapd] *******************************************
319changed: [localhost]
320
321TASK [hotspot : Indicating hostapd daemon config file path] ********************
322changed: [localhost]
323
324TASK [hotspot : Setting Up Traffic Forwarding] *********************************
325changed: [localhost]
326
327TASK [hotspot : Create Iptables NAT chain] *************************************
328changed: [localhost]
329
330TASK [hotspot : Saving iptable config] *****************************************
331changed: [localhost]
332
333TASK [hotspot : Load iptable config on boot (rc.local)] ************************
334changed: [localhost]
335
336TASK [hotspot : Unmasking service hostapd and dnsmasq] *************************
337changed: [localhost] => (item=hostapd)
338ok: [localhost] => (item=dnsmasq)
339
340TASK [hotspot : Enabling and starting dnsmasq] *********************************
341ok: [localhost]
342
343TASK [cockpit-metrics : Install the logparser] *********************************
344included: /var/lib/ansible/local/roles/cockpit-metrics/tasks/logparser.yml for localhost
345
346TASK [cockpit-metrics : Checking if parser is already installed] ***************
347ok: [localhost]
348
349TASK [cockpit-metrics : Remove old parser] *************************************
350skipping: [localhost]
351
352TASK [cockpit-metrics : Create logparser folder] *******************************
353changed: [localhost]
354
355TASK [cockpit-metrics : Get latest logparser source] ***************************
356changed: [localhost]
357
358TASK [cockpit-metrics : Rename cockpit minified plugin] ************************
359changed: [localhost]
360
361TASK [cockpit-metrics : change mode of files] **********************************
362changed: [localhost]
363
364TASK [cockpit-metrics : change mode of files] **********************************
365changed: [localhost]
366
367TASK [cockpit-metrics : Installing virtualenv] *********************************
368changed: [localhost]
369
370TASK [cockpit-metrics : Creating virtualenv] ***********************************
371changed: [localhost]
372
373TASK [cockpit-metrics : Install pip requirements] ******************************
374changed: [localhost]
375
376TASK [cockpit-metrics : Adding the service] ************************************
377changed: [localhost]
378
379TASK [cockpit-metrics : starting the service] **********************************
380changed: [localhost]
381
382TASK [cockpit-metrics : install the plugin] ************************************
383included: /var/lib/ansible/local/roles/cockpit-metrics/tasks/metrics.yml for localhost
384
385TASK [cockpit-metrics : Create cockpit folder architecture] ********************
386changed: [localhost]
387
388TASK [cockpit-metrics : Create tmp folder] *************************************
389changed: [localhost]
390
391TASK [cockpit-metrics : Get plugin src] ****************************************
392changed: [localhost]
393
394TASK [cockpit-metrics : Checking if plugin already exists] *********************
395ok: [localhost]
396
397TASK [cockpit-metrics : Remove old plugin] *************************************
398skipping: [localhost]
399
400TASK [cockpit-metrics : Rename cockpit minified plugin] ************************
401changed: [localhost]
402
403TASK [cockpit-hotspot : Raspiberry plugin] *************************************
404ok: [localhost]
405
406TASK [cockpit-hotspot : CMAL plugin] *******************************************
407skipping: [localhost]
408
409TASK [cockpit-hotspot : Get minified dist src] *********************************
410changed: [localhost]
411
412TASK [cockpit-hotspot : Create cockpit folder architecture] ********************
413ok: [localhost]
414
415TASK [cockpit-hotspot : Create tmp folder] *************************************
416changed: [localhost]
417
418TASK [cockpit-hotspot : Unarchive plugin] **************************************
419changed: [localhost]
420
421TASK [cockpit-hotspot : Checking if plugin already exists] *********************
422ok: [localhost]
423
424TASK [cockpit-hotspot : Remove old plugin] *************************************
425skipping: [localhost]
426
427TASK [cockpit-hotspot : Rename cockpit minified plugin] ************************
428changed: [localhost]
429
430TASK [cockpit-hotspot : Remove the archive] ************************************
431changed: [localhost]
432
433TASK [cockpit-hotspot : Remove the extracted files] ****************************
434changed: [localhost]
435
436TASK [cockpit : Include arch variables] ****************************************
437ok: [localhost]
438
439TASK [cockpit : install GPG key1] **********************************************
440changed: [localhost]
441
442TASK [cockpit : install GPG key2] **********************************************
443changed: [localhost]
444
445TASK [cockpit : Add the Repository] ********************************************
446changed: [localhost]
447
448TASK [cockpit : install cockpit] ***********************************************
449changed: [localhost]
450
451TASK [cockpit : Create user cockpit] *******************************************
452changed: [localhost]
453
454TASK [cockpit : Adding polkit rule to bypass cockpit user restrictions over systemd] ***
455changed: [localhost]
456
457PLAY RECAP *********************************************************************
458localhost : ok=76 changed=60 unreachable=0 failed=0 skipped=10 rescued=0 ignored=0