· 6 years ago · Jan 30, 2020, 02:24 PM
1pi@raspberrypi:~ $ curl -sfL https://gitlab.com/bibliosansfrontieres/olip/olip-deploy/raw/master/go.sh | sudo bash -s -- --name bsfbox --url bsf.lan --descriptor http://drop.bsf-intranet.org/olip/conf-i386
2[+] Check Internet connection...
3Done.
4[+] Install PPA...
5Executing: /tmp/apt-key-gpghome.DO2VYDFakY/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: 1585, done.
122remote: Counting objects: 100% (1585/1585), done.
123remote: Compressing objects: 100% (628/628), done.
124remote: Total 1585 (delta 854), reused 1560 (delta 838), pack-reused 0
125Receiving objects: 100% (1585/1585), 1.18 MiB | 1.99 MiB/s, done.
126Resolving deltas: 100% (854/854), done.
127Done.
128[+] Start configuration... tail -f /var/log/ansible-pull.log for logs
129Starting Ansible Pull at 2020-01-30 13:56:08
130/usr/bin/ansible-pull --purge -C 1.7.9 -d /var/lib/ansible/local -i hosts -U https://gitlab.com/bibliosansfrontieres/olip/olip-deploy.git main.yml --extra-vars end_user_server_name=bsfbox end_user_domain_name=bsf.lan end_user_olip_file_descriptor=http://drop.bsf-intranet.org/olip/conf-i386
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": "0f21142a75f8f3510c62fa06a6baea689010b070",
145 "ansible_facts": {
146 "discovered_interpreter_python": "/usr/bin/python"
147 },
148 "before": "0f21142a75f8f3510c62fa06a6baea689010b070",
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
167ce_appendices/interpreter_discovery.html for more information.
168ok: [localhost]
169
170TASK [setup_system : debug] ****************************************************
171ok: [localhost] => {
172 "msg": "Start OLIP install 2020-01-30 - 13:56:38 - IPFS Hash file descriptor: http://drop.bsf-intranet.org/olip/conf-i386"
173}
174
175TASK [setup_system : Update and upgrade apt packages] **************************
176[WARNING]:changed: [ The valuelocalhost] True (typ
177e bool) in a string field was converted to
178u'True' (type string). If this does not look like what you expect, quote the
179entire value to ensure it does not change.
180[WARNING]: Updating cache and auto-installing missing dependency: python-apt
181
182TASK [setup_system : Fix broken package] ***************************************
183changed: [localhost]
184
185TASK [setup_system : Install required package] *********************************
186changed: [localhost]
187
188TASK [setup_system : Upgrade all safe packages] ********************************
189ok: [localhost]
190
191TASK [setup_system : Ensure locale en_US.UTF-8 locale is present] **************
192changed: [localhost]
193
194TASK [setup_system : Set a server name with hostnamectl] ***********************
195changed: [localhost]
196
197TASK [setup_system : reload ansible_hostname] **********************************
198ok: [localhost]
199
200TASK [setup_system : Creates ipfs mount points] ********************************
201changed: [localhost] => (item=/ipfs)
202changed: [localhost] => (item=/ipns)
203
204TASK [setup_system : Set device index] *****************************************
205skipping: [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'})
206skipping: [localhost] => (item={u'block_used': 678273, u'uuid': u'N/A', u'size_total': 30507495424L, u'block_total': 7448119, u'mount': u'/', u'block_available': 6769846, u'size_available': 27729289216L, u'fstype': u'ext4', u'inode_total': 1867136, u'inode_available': 1808760, u'device': u'/dev/root', u'inode_used': 58376, u'block_size': 4096, u'options': u'rw,noatime'})
207
208TASK [setup_system : Set mount index] ******************************************
209skipping: [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'})
210skipping: [localhost] => (item={u'block_used': 678273, u'uuid': u'N/A', u'size_total': 30507495424L, u'block_total': 7448119, u'mount': u'/', u'block_available': 6769846, u'size_available': 27729289216L, u'fstype': u'ext4', u'inode_total': 1867136, u'inode_available': 1808760, u'device': u'/dev/root', u'inode_used': 58376, u'block_size': 4096, u'options': u'rw,noatime'})
211
212TASK [setup_system : Register if an external hard drive is present on the server (will store Docker image and data)] ***
213skipping: [localhost]
214
215TASK [setup_system : debug] ****************************************************
216ok: [localhost] => {
217 "msg": "External hardrive detected False"
218}
219
220TASK [balena-engine : Include arch variables] **********************************
221ok: [localhost]
222
223TASK [balena-engine : Download balenad binary & extract balena] ****************
224changed: [localhost]
225
226TASK [balena-engine : Ensure group balena exists] ******************************
227changed: [localhost]
228
229TASK [balena-engine : Copy systemd unit service] *******************************
230changed: [localhost]
231
232TASK [balena-engine : Copy systemd unit service] *******************************
233changed: [localhost]
234
235TASK [balena-engine : Create balena-engine directory] **************************
236changed: [localhost]
237
238TASK [balena-engine : Enable overlay] ******************************************
239skipping: [localhost]
240
241TASK [balena-engine : Enable balena service] ***********************************
242changed: [localhost]
243
244TASK [balena-engine : Install python-backports.ssl-match-hostname for Docker python lib] ***
245changed: [localhost]
246
247TASK [balena-engine : Install a Python library for the Docker Engine API] ******
248changed: [localhost]
249
250TASK [olip : Include arch variables] *******************************************
251ok: [localhost]
252
253TASK [olip : If external HDD set new OLIP storage directory] *******************
254skipping: [localhost]
255
256TASK [olip : Create a symbolic link for OLIP storage directory] ****************
257skipping: [localhost]
258
259TASK [olip : Create nginx log folder] ******************************************
260changed: [localhost]
261
262TASK [olip : Create core network] **********************************************
263[DEPRECATION WARNING]: Param 'ipam_options' is deprecated. See the module docs
264for more information. This feature will be removed in version 2.12. Deprecation
265 warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
266fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', error(111, 'Connection refused'))"}
267
268PLAY RECAP *********************************************************************
269localhost : ok=22 changed=15 unreachable=0 failed=1 skipped=6 rescued=0 ignored=0