Giter VIP home page Giter VIP logo

pimp-my-box's Introduction

Migrated pyroscope Google Code repository

โš ๏ธ This is the original subversion repository migrated from https://code.google.com/p/pyroscope/ to GitHub. It is only here for archival purposes, see pyroscope/pyrocore and pyroscope/rtorrent-ps for any further development.
๐Ÿ› Old issues are available in the issue tracker of this project! Open new issues in the tracker of the respective new project; new issues opened here will be instantly closed.

WHAT'S HERE?

Nothing of interest to you. Please read the notices at the top of this README.

pimp-my-box's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pimp-my-box's Issues

Starting rTorrent on Target Error

Followed the guide and all is well. I log into the target server with the rtorrent user setup
I run the command tmux -2u new -n rT-PS -s rtorrent "~/rtorrent/start; exec bash"
I seems to open a tmux session with a caveat it says 'bash: /home/setup/rtorrent/start: No such file or directory'
I checked and all the rtorrent stuff is in /home/rtorrent is that correct?

curl caused crash using rtorrent-ps from pimp-my-box

Posted this initially to rakshasa/rtorrent#620 but rakshasa closed the issue because it doesn't seem like a problem with rtorrent.

does pimp-my-box have any insight? is there another version of libcurl i should be using?

just when i think rtorrent is finally behaving in a stable way... Similar problem here but I am using rtorrent-ps through Ansible pimp-my-box

(pyroscope) rtorrent@debian:~$ curl --version
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

(pyroscope) rtorrent@debian:~$ ldd /opt/rtorrent/bin/rtorrent |grep curl
libcurl.so.4 => /opt/rtorrent/lib/libcurl.so.4 (0x00007f621452b000)

(pyroscope) rtorrent@debian:~$ readlink -e /opt/rtorrent/lib/libcurl.so.4
/opt/rtorrent/lib/libcurl.so.4.4.0

Caught internal_error: Call to curl_easy_init() failed.
/opt/rtorrent/lib/libtorrent.so.19(_ZN7torrent14internal_error10initializeERKSs+0x1cf) [0x7f2ff5872fbf]
/opt/rtorrent/bin/rtorrent(_ZN7torrent14internal_errorC2EPKc+0x3c) [0x44e97c]
/opt/rtorrent/bin/rtorrent() [0x4e4371]
/opt/rtorrent/lib/libtorrent.so.19(+0xca16f) [0x7f2ff590f16f]
/opt/rtorrent/lib/libtorrent.so.19(_ZN7torrent11TrackerList10send_stateEPNS_7TrackerEi+0x74) [0x7f2ff588cab4]
/opt/rtorrent/lib/libtorrent.so.19(_ZN7torrent17TrackerController10do_timeoutEv+0x23c) [0x7f2ff588bd1c]
/opt/rtorrent/lib/libtorrent.so.19(+0x2a60a) [0x7f2ff586f60a]
/opt/rtorrent/lib/libtorrent.so.19(_ZN7torrent11thread_base10event_loopEPS0_+0x1a2) [0x7f2ff58ba682]
/opt/rtorrent/bin/rtorrent() [0x4125fb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f2ff3fb92b1]
/opt/rtorrent/bin/rtorrent() [0x413674]

Add backup jobs

  • Backup dynamic data / configuration
    • rTorrent session data
    • ruTorrent ~/profile
    • /etc
    • โ€ฆ
  • Copy to an optional rsync target

Add rtorrent-ps DEB installation

  • download and install from Bintray
  • for at least Debian and Ubuntu
  • allow version selection
  • provide mapping from version/distro/arch to URLs, skip for unknown combinations

common role missing apt cache update task

I am working on creating a Docker distribution made with ansible.

First error I had to deal with was that no packages could be installed, because in the brand new container, apt-get update has never been run. Thus, no packages cache exists and so the basic tools install task fails.

We need to add the following task before the basic tools task:

- name: "Update Cache"
  apt:
    update_cache: yes

Does the log.messages functionality work?

I just tried the log.messages functionality out:

log.add_output = "info", "log"

I have an empty file but nothing is in it.
The content of the log window (l keyboard shortcut) looks like this:

(14:17:35) Using 'epoll' based polling.
(14:17:35) Using 'epoll' based polling.
(14:17:35) rtorrent disk: Starting thread.
(14:17:35) Using 'epoll' based polling.
(14:17:35) Closed XMLRPC log.
(14:17:35) rTorrent-PS features active!
(14:17:35) Opened message log file '/mnt/Torrents/.rtorrent/.log/messages-2018-04-20-141735.log'.
(14:17:35) Ignoring rtorrent.rc.
(14:17:35) rtorrent scgi: Starting thread.
(14:17:35) rtorrent main: Starting thread.
(14:18:25) xyz

Other similar commands are working fine (log.execute, log.xmlrpc). It's like there's no "output redirection" for this command.
Do I miss something?
Thanks!

Note: I use rtorrent-ps-ch

error on fresh debian 8 install

after apt-get update and dist-upgrade

username@debian:~/src/pimp-my-box$ ./scripts/install_ansible.sh
*** Checking build essentials
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  binutils bzip2 cpp cpp-4.9 dpkg-dev fakeroot g++ g++-4.9 gcc gcc-4.9 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan1 libatomic1 libc-dev-bin libc6-dev libcilkrts5 libcloog-isl4 libdpkg-perl libfakeroot libfile-fcntllock-perl
  libgcc-4.9-dev libgomp1 libisl10 libitm1 liblsan0 libmpc3 libmpfr4 libquadmath0 libstdc++-4.9-dev libtimedate-perl libtsan0 libubsan0 linux-libc-dev make manpages-dev xz-utils
Suggested packages:
  binutils-doc bzip2-doc cpp-doc gcc-4.9-locales debian-keyring g++-multilib g++-4.9-multilib gcc-4.9-doc libstdc++6-4.9-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-4.9-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan1-dbg
  liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libquadmath0-dbg glibc-doc libstdc++-4.9-doc make-doc
The following NEW packages will be installed:
  binutils build-essential bzip2 cpp cpp-4.9 dpkg-dev fakeroot g++ g++-4.9 gcc gcc-4.9 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan1 libatomic1 libc-dev-bin libc6-dev libcilkrts5 libcloog-isl4 libdpkg-perl libfakeroot
  libfile-fcntllock-perl libgcc-4.9-dev libgomp1 libisl10 libitm1 liblsan0 libmpc3 libmpfr4 libquadmath0 libstdc++-4.9-dev libtimedate-perl libtsan0 libubsan0 linux-libc-dev make manpages-dev xz-utils
0 upgraded, 39 newly installed, 0 to remove and 0 not upgraded.
Need to get 49.2 MB of archives.
After this operation, 142 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://httpredir.debian.org/debian/ jessie/main libasan1 amd64 4.9.2-10 [195 kB]          
Get:2 http://httpredir.debian.org/debian/ jessie/main libcilkrts5 amd64 4.9.2-10 [40.1 kB]               
Get:3 http://httpredir.debian.org/debian/ jessie/main libatomic1 amd64 4.9.2-10 [8,992 B]                                        
Get:4 http://httpredir.debian.org/debian/ jessie/main libitm1 amd64 4.9.2-10 [29.2 kB]                                    
Get:5 http://httpredir.debian.org/debian/ jessie/main libgomp1 amd64 4.9.2-10 [37.8 kB]        
Get:6 http://httpredir.debian.org/debian/ jessie/main libisl10 amd64 0.12.2-2 [440 kB]               
Get:7 http://httpredir.debian.org/debian/ jessie/main liblsan0 amd64 4.9.2-10 [92.8 kB]                       
Get:8 http://httpredir.debian.org/debian/ jessie/main libmpfr4 amd64 3.1.2-2 [527 kB]                               
Get:9 http://httpredir.debian.org/debian/ jessie/main libtsan0 amd64 4.9.2-10 [212 kB]                       
Get:10 http://httpredir.debian.org/debian/ jessie/main libubsan0 amd64 4.9.2-10 [82.4 kB]                            
Get:11 http://httpredir.debian.org/debian/ jessie/main libcloog-isl4 amd64 0.18.2-1+b2 [61.8 kB]
Get:12 http://httpredir.debian.org/debian/ jessie/main binutils amd64 2.25-5 [3,516 kB]   
Get:13 http://httpredir.debian.org/debian/ jessie/main libmpc3 amd64 1.0.2-1 [39.3 kB]                
Get:14 http://httpredir.debian.org/debian/ jessie/main libquadmath0 amd64 4.9.2-10 [129 kB]                 
Get:15 http://httpredir.debian.org/debian/ jessie/main bzip2 amd64 1.0.6-7+b3 [46.9 kB]                              
Get:16 http://httpredir.debian.org/debian/ jessie/main libc-dev-bin amd64 2.19-18+deb8u7 [238 kB]        
Get:17 http://httpredir.debian.org/debian/ jessie/main xz-utils amd64 5.1.1alpha+20120614-2+b3 [221 kB]             
Get:18 http://httpredir.debian.org/debian/ jessie/main linux-libc-dev amd64 3.16.39-1 [1,045 kB]                               
Get:19 http://httpredir.debian.org/debian/ jessie/main cpp-4.9 amd64 4.9.2-10 [5,169 kB]                                
Get:20 http://httpredir.debian.org/debian/ jessie/main cpp amd64 4:4.9.2-2 [17.3 kB]                                                  
Get:21 http://httpredir.debian.org/debian/ jessie/main g++-4.9 amd64 4.9.2-10 [21.4 MB]                               
Get:22 http://httpredir.debian.org/debian/ jessie/main libc6-dev amd64 2.19-18+deb8u7 [2,002 kB]                               
Get:23 http://httpredir.debian.org/debian/ jessie/main libgcc-4.9-dev amd64 4.9.2-10 [2,066 kB]                                   
Get:24 http://httpredir.debian.org/debian/ jessie/main gcc-4.9 amd64 4.9.2-10 [5,352 kB]                                              
Get:25 http://httpredir.debian.org/debian/ jessie/main gcc amd64 4:4.9.2-2 [5,136 B]                                                 
Get:26 http://httpredir.debian.org/debian/ jessie/main g++ amd64 4:4.9.2-2 [1,530 B]                 
Get:27 http://httpredir.debian.org/debian/ jessie/main build-essential amd64 11.7 [7,114 B]          
Get:28 http://httpredir.debian.org/debian/ jessie/main libstdc++-4.9-dev amd64 4.9.2-10 [1,121 kB]
Get:29 http://httpredir.debian.org/debian/ jessie/main make amd64 4.0-8.1 [349 kB]
Get:30 http://httpredir.debian.org/debian/ jessie/main libtimedate-perl all 2.3000-2 [42.2 kB]
Get:31 http://httpredir.debian.org/debian/ jessie/main libdpkg-perl all 1.17.27 [1,075 kB]
Get:32 http://httpredir.debian.org/debian/ jessie/main dpkg-dev all 1.17.27 [1,548 kB]
Get:33 http://httpredir.debian.org/debian/ jessie/main fakeroot amd64 1.20.2-1 [84.7 kB]
Get:34 http://httpredir.debian.org/debian/ jessie/main libalgorithm-diff-perl all 1.19.02-3 [51.7 kB]
Get:35 http://httpredir.debian.org/debian/ jessie/main libalgorithm-merge-perl all 0.08-2 [13.5 kB]
Get:36 http://httpredir.debian.org/debian/ jessie/main manpages-dev all 3.74-1 [1,865 kB]
Get:37 http://httpredir.debian.org/debian/ jessie/main libfakeroot amd64 1.20.2-1 [44.7 kB]
Get:38 http://httpredir.debian.org/debian/ jessie/main libalgorithm-diff-xs-perl amd64 0.04-3+b1 [12.2 kB]
Get:39 http://httpredir.debian.org/debian/ jessie/main libfile-fcntllock-perl amd64 0.22-1+b1 [36.4 kB]
Fetched 49.2 MB in 5s (8,884 kB/s)             
Extracting templates from packages: 100%
Selecting previously unselected package libasan1:amd64.
(Reading database ... 25852 files and directories currently installed.)
Preparing to unpack .../libasan1_4.9.2-10_amd64.deb ...
Unpacking libasan1:amd64 (4.9.2-10) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_4.9.2-10_amd64.deb ...
Unpacking libatomic1:amd64 (4.9.2-10) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../libcilkrts5_4.9.2-10_amd64.deb ...
Unpacking libcilkrts5:amd64 (4.9.2-10) ...
Selecting previously unselected package libisl10:amd64.
Preparing to unpack .../libisl10_0.12.2-2_amd64.deb ...
Unpacking libisl10:amd64 (0.12.2-2) ...
Selecting previously unselected package libcloog-isl4:amd64.
Preparing to unpack .../libcloog-isl4_0.18.2-1+b2_amd64.deb ...
Unpacking libcloog-isl4:amd64 (0.18.2-1+b2) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_4.9.2-10_amd64.deb ...
Unpacking libgomp1:amd64 (4.9.2-10) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_4.9.2-10_amd64.deb ...
Unpacking libitm1:amd64 (4.9.2-10) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../liblsan0_4.9.2-10_amd64.deb ...
Unpacking liblsan0:amd64 (4.9.2-10) ...
Selecting previously unselected package libmpfr4:amd64.
Preparing to unpack .../libmpfr4_3.1.2-2_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.2-2) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_4.9.2-10_amd64.deb ...
Unpacking libquadmath0:amd64 (4.9.2-10) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_4.9.2-10_amd64.deb ...
Unpacking libtsan0:amd64 (4.9.2-10) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../libubsan0_4.9.2-10_amd64.deb ...
Unpacking libubsan0:amd64 (4.9.2-10) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../libmpc3_1.0.2-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.2-1) ...
Selecting previously unselected package bzip2.
Preparing to unpack .../bzip2_1.0.6-7+b3_amd64.deb ...
Unpacking bzip2 (1.0.6-7+b3) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../xz-utils_5.1.1alpha+20120614-2+b3_amd64.deb ...
Unpacking xz-utils (5.1.1alpha+20120614-2+b3) ...
Selecting previously unselected package binutils.
Preparing to unpack .../binutils_2.25-5_amd64.deb ...
Unpacking binutils (2.25-5) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.19-18+deb8u7_amd64.deb ...
Unpacking libc-dev-bin (2.19-18+deb8u7) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_3.16.39-1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (3.16.39-1) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.19-18+deb8u7_amd64.deb ...
Unpacking libc6-dev:amd64 (2.19-18+deb8u7) ...
Selecting previously unselected package cpp-4.9.
Preparing to unpack .../cpp-4.9_4.9.2-10_amd64.deb ...
Unpacking cpp-4.9 (4.9.2-10) ...
Selecting previously unselected package cpp.
Preparing to unpack .../cpp_4%3a4.9.2-2_amd64.deb ...
Unpacking cpp (4:4.9.2-2) ...
Selecting previously unselected package libgcc-4.9-dev:amd64.
Preparing to unpack .../libgcc-4.9-dev_4.9.2-10_amd64.deb ...
Unpacking libgcc-4.9-dev:amd64 (4.9.2-10) ...
Selecting previously unselected package gcc-4.9.
Preparing to unpack .../gcc-4.9_4.9.2-10_amd64.deb ...
Unpacking gcc-4.9 (4.9.2-10) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a4.9.2-2_amd64.deb ...
Unpacking gcc (4:4.9.2-2) ...
Selecting previously unselected package libstdc++-4.9-dev:amd64.
Preparing to unpack .../libstdc++-4.9-dev_4.9.2-10_amd64.deb ...
Unpacking libstdc++-4.9-dev:amd64 (4.9.2-10) ...
Selecting previously unselected package g++-4.9.
Preparing to unpack .../g++-4.9_4.9.2-10_amd64.deb ...
Unpacking g++-4.9 (4.9.2-10) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a4.9.2-2_amd64.deb ...
Unpacking g++ (4:4.9.2-2) ...
Selecting previously unselected package make.
Preparing to unpack .../make_4.0-8.1_amd64.deb ...
Unpacking make (4.0-8.1) ...
Selecting previously unselected package libtimedate-perl.
Preparing to unpack .../libtimedate-perl_2.3000-2_all.deb ...
Unpacking libtimedate-perl (2.3000-2) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../libdpkg-perl_1.17.27_all.deb ...
Unpacking libdpkg-perl (1.17.27) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../dpkg-dev_1.17.27_all.deb ...
Unpacking dpkg-dev (1.17.27) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../build-essential_11.7_amd64.deb ...
Unpacking build-essential (11.7) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../libfakeroot_1.20.2-1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.20.2-1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.20.2-1_amd64.deb ...
Unpacking fakeroot (1.20.2-1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../libalgorithm-diff-perl_1.19.02-3_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.02-3) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-3+b1_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-3+b1) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../libalgorithm-merge-perl_0.08-2_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-2) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../libfile-fcntllock-perl_0.22-1+b1_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-1+b1) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../manpages-dev_3.74-1_all.deb ...
Unpacking manpages-dev (3.74-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libasan1:amd64 (4.9.2-10) ...
Setting up libatomic1:amd64 (4.9.2-10) ...
Setting up libcilkrts5:amd64 (4.9.2-10) ...
Setting up libisl10:amd64 (0.12.2-2) ...
Setting up libcloog-isl4:amd64 (0.18.2-1+b2) ...
Setting up libgomp1:amd64 (4.9.2-10) ...
Setting up libitm1:amd64 (4.9.2-10) ...
Setting up liblsan0:amd64 (4.9.2-10) ...
Setting up libmpfr4:amd64 (3.1.2-2) ...
Setting up libquadmath0:amd64 (4.9.2-10) ...
Setting up libtsan0:amd64 (4.9.2-10) ...
Setting up libubsan0:amd64 (4.9.2-10) ...
Setting up libmpc3:amd64 (1.0.2-1) ...
Setting up bzip2 (1.0.6-7+b3) ...
Setting up xz-utils (5.1.1alpha+20120614-2+b3) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
Setting up binutils (2.25-5) ...
Setting up libc-dev-bin (2.19-18+deb8u7) ...
Setting up linux-libc-dev:amd64 (3.16.39-1) ...
Setting up libc6-dev:amd64 (2.19-18+deb8u7) ...
Setting up cpp-4.9 (4.9.2-10) ...
Setting up cpp (4:4.9.2-2) ...
Setting up libgcc-4.9-dev:amd64 (4.9.2-10) ...
Setting up gcc-4.9 (4.9.2-10) ...
Setting up gcc (4:4.9.2-2) ...
Setting up libstdc++-4.9-dev:amd64 (4.9.2-10) ...
Setting up g++-4.9 (4.9.2-10) ...
Setting up g++ (4:4.9.2-2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up make (4.0-8.1) ...
Setting up libtimedate-perl (2.3000-2) ...
Setting up libdpkg-perl (1.17.27) ...
Setting up dpkg-dev (1.17.27) ...
Setting up build-essential (11.7) ...
Setting up libfakeroot:amd64 (1.20.2-1) ...
Setting up fakeroot (1.20.2-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up libalgorithm-diff-perl (1.19.02-3) ...
Setting up libalgorithm-diff-xs-perl (0.04-3+b1) ...
Setting up libalgorithm-merge-perl (0.08-2) ...
Setting up libfile-fcntllock-perl (0.22-1+b1) ...
Setting up manpages-dev (3.74-1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
*** Checking virtualenv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  dh-python libmpdec2 libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib python-chardet-whl python-colorama-whl python-distlib-whl python-html5lib-whl python-pip-whl python-requests-whl python-setuptools-whl python-six-whl python-urllib3-whl python3
  python3-minimal python3-pkg-resources python3-virtualenv python3.4 python3.4-minimal virtualenv
Suggested packages:
  python3-doc python3-tk python3-venv python3-setuptools python3.4-venv python3.4-doc binfmt-support
The following NEW packages will be installed:
  dh-python libmpdec2 libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib python-chardet-whl python-colorama-whl python-distlib-whl python-html5lib-whl python-pip-whl python-requests-whl python-setuptools-whl python-six-whl python-urllib3-whl python-virtualenv
  python3 python3-minimal python3-pkg-resources python3-virtualenv python3.4 python3.4-minimal virtualenv
0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,964 kB of archives.
After this operation, 20.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://httpredir.debian.org/debian/ jessie/main libmpdec2 amd64 2.4.1-1 [85.7 kB]
Get:2 http://httpredir.debian.org/debian/ jessie/main libpython3.4-minimal amd64 3.4.2-1 [492 kB]
Get:3 http://httpredir.debian.org/debian/ jessie/main libpython3.4-stdlib amd64 3.4.2-1 [2,088 kB]
Get:4 http://httpredir.debian.org/debian/ jessie/main python3.4-minimal amd64 3.4.2-1 [1,646 kB]
Get:5 http://httpredir.debian.org/debian/ jessie/main python3.4 amd64 3.4.2-1 [204 kB]
Get:6 http://httpredir.debian.org/debian/ jessie/main python3-minimal amd64 3.4.2-2 [34.7 kB]
Get:7 http://httpredir.debian.org/debian/ jessie/main libpython3-stdlib amd64 3.4.2-2 [18.1 kB]
Get:8 http://httpredir.debian.org/debian/ jessie/main python3 amd64 3.4.2-2 [21.2 kB]
Get:9 http://httpredir.debian.org/debian/ jessie/main dh-python all 1.20141111-2 [66.4 kB]
Get:10 http://httpredir.debian.org/debian/ jessie/main python3-pkg-resources all 5.5.1-1 [34.2 kB]
Get:11 http://httpredir.debian.org/debian/ jessie/main python-chardet-whl all 2.3.0-1 [170 kB]
Get:12 http://httpredir.debian.org/debian/ jessie/main python-colorama-whl all 0.3.2-1 [20.2 kB]
Get:13 http://httpredir.debian.org/debian/ jessie/main python-distlib-whl all 0.1.9-1 [141 kB]
Get:14 http://httpredir.debian.org/debian/ jessie/main python-html5lib-whl all 0.999-3 [112 kB]
Get:15 http://httpredir.debian.org/debian/ jessie/main python-six-whl all 1.8.0-1 [14.8 kB]
Get:16 http://httpredir.debian.org/debian/ jessie/main python-urllib3-whl all 1.9.1-3 [76.8 kB]
Get:17 http://httpredir.debian.org/debian/ jessie/main python-requests-whl all 2.4.3-6 [241 kB]
Get:18 http://httpredir.debian.org/debian/ jessie/main python-setuptools-whl all 5.5.1-1 [233 kB]
Get:19 http://httpredir.debian.org/debian/ jessie/main python-pip-whl all 1.5.6-5 [126 kB]
Get:20 http://httpredir.debian.org/debian/ jessie/main python-virtualenv all 1.11.6+ds-1 [61.2 kB]
Get:21 http://httpredir.debian.org/debian/ jessie/main python3-virtualenv all 1.11.6+ds-1 [60.5 kB]
Get:22 http://httpredir.debian.org/debian/ jessie/main virtualenv all 1.11.6+ds-1 [17.2 kB]
Fetched 5,964 kB in 2s (2,835 kB/s)
Selecting previously unselected package libmpdec2:amd64.
(Reading database ... 31055 files and directories currently installed.)
Preparing to unpack .../libmpdec2_2.4.1-1_amd64.deb ...
Unpacking libmpdec2:amd64 (2.4.1-1) ...
Selecting previously unselected package libpython3.4-minimal:amd64.
Preparing to unpack .../libpython3.4-minimal_3.4.2-1_amd64.deb ...
Unpacking libpython3.4-minimal:amd64 (3.4.2-1) ...
Selecting previously unselected package libpython3.4-stdlib:amd64.
Preparing to unpack .../libpython3.4-stdlib_3.4.2-1_amd64.deb ...
Unpacking libpython3.4-stdlib:amd64 (3.4.2-1) ...
Selecting previously unselected package python3.4-minimal.
Preparing to unpack .../python3.4-minimal_3.4.2-1_amd64.deb ...
Unpacking python3.4-minimal (3.4.2-1) ...
Selecting previously unselected package python3.4.
Preparing to unpack .../python3.4_3.4.2-1_amd64.deb ...
Unpacking python3.4 (3.4.2-1) ...
Selecting previously unselected package python3-minimal.
Preparing to unpack .../python3-minimal_3.4.2-2_amd64.deb ...
Unpacking python3-minimal (3.4.2-2) ...
Selecting previously unselected package libpython3-stdlib:amd64.
Preparing to unpack .../libpython3-stdlib_3.4.2-2_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.4.2-2) ...
Selecting previously unselected package python3.
Preparing to unpack .../python3_3.4.2-2_amd64.deb ...
Unpacking python3 (3.4.2-2) ...
Selecting previously unselected package dh-python.
Preparing to unpack .../dh-python_1.20141111-2_all.deb ...
Unpacking dh-python (1.20141111-2) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../python3-pkg-resources_5.5.1-1_all.deb ...
Unpacking python3-pkg-resources (5.5.1-1) ...
Selecting previously unselected package python-chardet-whl.
Preparing to unpack .../python-chardet-whl_2.3.0-1_all.deb ...
Unpacking python-chardet-whl (2.3.0-1) ...
Selecting previously unselected package python-colorama-whl.
Preparing to unpack .../python-colorama-whl_0.3.2-1_all.deb ...
Unpacking python-colorama-whl (0.3.2-1) ...
Selecting previously unselected package python-distlib-whl.
Preparing to unpack .../python-distlib-whl_0.1.9-1_all.deb ...
Unpacking python-distlib-whl (0.1.9-1) ...
Selecting previously unselected package python-html5lib-whl.
Preparing to unpack .../python-html5lib-whl_0.999-3_all.deb ...
Unpacking python-html5lib-whl (0.999-3) ...
Selecting previously unselected package python-six-whl.
Preparing to unpack .../python-six-whl_1.8.0-1_all.deb ...
Unpacking python-six-whl (1.8.0-1) ...
Selecting previously unselected package python-urllib3-whl.
Preparing to unpack .../python-urllib3-whl_1.9.1-3_all.deb ...
Unpacking python-urllib3-whl (1.9.1-3) ...
Selecting previously unselected package python-requests-whl.
Preparing to unpack .../python-requests-whl_2.4.3-6_all.deb ...
Unpacking python-requests-whl (2.4.3-6) ...
Selecting previously unselected package python-setuptools-whl.
Preparing to unpack .../python-setuptools-whl_5.5.1-1_all.deb ...
Unpacking python-setuptools-whl (5.5.1-1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../python-pip-whl_1.5.6-5_all.deb ...
Unpacking python-pip-whl (1.5.6-5) ...
Selecting previously unselected package python-virtualenv.
Preparing to unpack .../python-virtualenv_1.11.6+ds-1_all.deb ...
Unpacking python-virtualenv (1.11.6+ds-1) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../python3-virtualenv_1.11.6+ds-1_all.deb ...
Unpacking python3-virtualenv (1.11.6+ds-1) ...
Selecting previously unselected package virtualenv.
Preparing to unpack .../virtualenv_1.11.6+ds-1_all.deb ...
Unpacking virtualenv (1.11.6+ds-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for mime-support (3.58) ...
Setting up libmpdec2:amd64 (2.4.1-1) ...
Setting up libpython3.4-minimal:amd64 (3.4.2-1) ...
Setting up libpython3.4-stdlib:amd64 (3.4.2-1) ...
Setting up python3.4-minimal (3.4.2-1) ...
Setting up python3.4 (3.4.2-1) ...
Setting up python3-minimal (3.4.2-2) ...
Setting up libpython3-stdlib:amd64 (3.4.2-2) ...
Setting up python-colorama-whl (0.3.2-1) ...
Setting up python-distlib-whl (0.1.9-1) ...
Setting up python-html5lib-whl (0.999-3) ...
Setting up python-six-whl (1.8.0-1) ...
Setting up python-urllib3-whl (1.9.1-3) ...
Setting up python-requests-whl (2.4.3-6) ...
Setting up python-setuptools-whl (5.5.1-1) ...
Setting up python3 (3.4.2-2) ...
running python rtupdate hooks for python3.4...
running python post-rtupdate hooks for python3.4...
Setting up dh-python (1.20141111-2) ...
Setting up python3-pkg-resources (5.5.1-1) ...
Setting up python-chardet-whl (2.3.0-1) ...
Setting up python-pip-whl (1.5.6-5) ...
Setting up python-virtualenv (1.11.6+ds-1) ...
Setting up python3-virtualenv (1.11.6+ds-1) ...
Setting up virtualenv (1.11.6+ds-1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
*** Checking Python development support
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libexpat1-dev libpython-dev libpython2.7 libpython2.7-dev python2.7-dev
The following NEW packages will be installed:
  libexpat1-dev libpython-dev libpython2.7 libpython2.7-dev python-dev python2.7-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.1 MB of archives.
After this operation, 35.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://security.debian.org/ jessie/updates/main libexpat1-dev amd64 2.1.0-6+deb8u3 [126 kB]
Get:2 http://httpredir.debian.org/debian/ jessie/main libpython2.7 amd64 2.7.9-2+deb8u1 [1,081 kB]
Get:3 http://httpredir.debian.org/debian/ jessie/main libpython2.7-dev amd64 2.7.9-2+deb8u1 [18.6 MB]          
Get:4 http://httpredir.debian.org/debian/ jessie/main python2.7-dev amd64 2.7.9-2+deb8u1 [290 kB]
Get:5 http://httpredir.debian.org/debian/ jessie/main libpython-dev amd64 2.7.9-1 [19.6 kB]
Get:6 http://httpredir.debian.org/debian/ jessie/main python-dev amd64 2.7.9-1 [1,182 B]
Fetched 20.1 MB in 2s (6,838 kB/s)
Selecting previously unselected package libpython2.7:amd64.
(Reading database ... 32049 files and directories currently installed.)
Preparing to unpack .../libpython2.7_2.7.9-2+deb8u1_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.9-2+deb8u1) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../libexpat1-dev_2.1.0-6+deb8u3_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.1.0-6+deb8u3) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../libpython2.7-dev_2.7.9-2+deb8u1_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.9-2+deb8u1) ...
Selecting previously unselected package libpython-dev:amd64.
Preparing to unpack .../libpython-dev_2.7.9-1_amd64.deb ...
Unpacking libpython-dev:amd64 (2.7.9-1) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../python2.7-dev_2.7.9-2+deb8u1_amd64.deb ...
Unpacking python2.7-dev (2.7.9-2+deb8u1) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../python-dev_2.7.9-1_amd64.deb ...
Unpacking python-dev (2.7.9-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libpython2.7:amd64 (2.7.9-2+deb8u1) ...
Setting up libexpat1-dev:amd64 (2.1.0-6+deb8u3) ...
Setting up libpython2.7-dev:amd64 (2.7.9-2+deb8u1) ...
Setting up libpython-dev:amd64 (2.7.9-1) ...
Setting up python2.7-dev (2.7.9-2+deb8u1) ...
Setting up python-dev (2.7.9-1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/username/.local/venvs/ansible/bin/python2
Also creating executable in /home/username/.local/venvs/ansible/bin/python
Installing setuptools, pip...done.
Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.6
    Uninstalling pip:
      Successfully uninstalled pip
Successfully installed pip
Cleaning up...
Collecting setuptools
  Downloading setuptools-34.0.1-py2.py3-none-any.whl (386kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 389kB 2.4MB/s 
Collecting packaging>=16.8 (from setuptools)
  Downloading packaging-16.8-py2.py3-none-any.whl
Collecting six>=1.10.0 (from setuptools)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting appdirs>=1.4.0 (from setuptools)
  Downloading appdirs-1.4.0-py2.py3-none-any.whl
Collecting pyparsing (from packaging>=16.8->setuptools)
  Downloading pyparsing-2.1.10-py2.py3-none-any.whl (56kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 61kB 8.4MB/s 
Installing collected packages: six, pyparsing, packaging, appdirs, setuptools
  Found existing installation: setuptools 5.5.1
    Uninstalling setuptools-5.5.1:
      Successfully uninstalled setuptools-5.5.1
Successfully installed appdirs-1.4.0 packaging-16.8 pyparsing-2.1.10 setuptools-34.0.1 six-1.10.0
Collecting wheel
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 71kB 3.6MB/s 
Installing collected packages: wheel
Successfully installed wheel-0.29.0
Collecting requests[security]
  Downloading requests-2.12.5-py2.py3-none-any.whl (576kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 583kB 2.2MB/s 
Collecting idna>=2.0.0; extra == "security" (from requests[security])
  Downloading idna-2.2-py2.py3-none-any.whl (55kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 61kB 7.3MB/s 
Collecting cryptography>=1.3.4; extra == "security" (from requests[security])
  Downloading cryptography-1.7.1.tar.gz (420kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 430kB 3.0MB/s 
Collecting pyOpenSSL>=0.14; extra == "security" (from requests[security])
  Downloading pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 51kB 9.5MB/s 
Collecting pyasn1>=0.1.8 (from cryptography>=1.3.4; extra == "security"->requests[security])
  Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Requirement already up-to-date: six>=1.4.1 in ./lib/python2.7/site-packages (from cryptography>=1.3.4; extra == "security"->requests[security])
Requirement already up-to-date: setuptools>=11.3 in ./lib/python2.7/site-packages (from cryptography>=1.3.4; extra == "security"->requests[security])
Collecting enum34 (from cryptography>=1.3.4; extra == "security"->requests[security])
  Downloading enum34-1.1.6-py2-none-any.whl
Collecting ipaddress (from cryptography>=1.3.4; extra == "security"->requests[security])
  Downloading ipaddress-1.0.18-py2-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=1.3.4; extra == "security"->requests[security])
  Downloading cffi-1.9.1-cp27-cp27mu-manylinux1_x86_64.whl (387kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 389kB 3.3MB/s 
Requirement already up-to-date: packaging>=16.8 in ./lib/python2.7/site-packages (from setuptools>=11.3->cryptography>=1.3.4; extra == "security"->requests[security])
Requirement already up-to-date: appdirs>=1.4.0 in ./lib/python2.7/site-packages (from setuptools>=11.3->cryptography>=1.3.4; extra == "security"->requests[security])
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.3.4; extra == "security"->requests[security])
  Downloading pycparser-2.17.tar.gz (231kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 235kB 5.2MB/s 
Requirement already up-to-date: pyparsing in ./lib/python2.7/site-packages (from packaging>=16.8->setuptools>=11.3->cryptography>=1.3.4; extra == "security"->requests[security])
Building wheels for collected packages: cryptography, pycparser
  Running setup.py bdist_wheel for cryptography ... error
  Complete output from command /home/username/.local/venvs/ansible/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-21OGFh/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpJQz9xrpip-wheel- --python-tag cp27:
  c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
   #include <ffi.h>
                   ^
  compilation terminated.
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-21OGFh/cryptography/setup.py", line 334, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
      _setup_distribution = dist = klass(attrs)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/dist.py", line 317, in __init__
      self.fetch_build_eggs(attrs['setup_requires'])
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs
      replace_conflicting=True,
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 845, in resolve
      dist = best[req.key] = env.best_match(req, ws, installer)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1117, in best_match
      return self.obtain(req, installer)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1129, in obtain
      return installer(requirement)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/dist.py", line 440, in fetch_build_egg
      return cmd.easy_install(req)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 674, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 881, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1120, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1108, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for cryptography
  Running setup.py clean for cryptography
  Complete output from command /home/username/.local/venvs/ansible/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-21OGFh/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
  c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
   #include <ffi.h>
                   ^
  compilation terminated.
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-21OGFh/cryptography/setup.py", line 334, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
      _setup_distribution = dist = klass(attrs)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/dist.py", line 317, in __init__
      self.fetch_build_eggs(attrs['setup_requires'])
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs
      replace_conflicting=True,
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 845, in resolve
      dist = best[req.key] = env.best_match(req, ws, installer)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1117, in best_match
      return self.obtain(req, installer)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1129, in obtain
      return installer(requirement)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/dist.py", line 440, in fetch_build_egg
      return cmd.easy_install(req)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 674, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 881, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1120, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1108, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
  ----------------------------------------
  Failed cleaning build dir for cryptography
  Running setup.py bdist_wheel for pycparser ... done
  Stored in directory: /home/username/.cache/pip/wheels/a8/0b/41/dc95621f9d3a0da7bc191b8a71f0e8182ffd3cc5f33ac55005
Successfully built pycparser
Failed to build cryptography
Installing collected packages: idna, pyasn1, enum34, ipaddress, pycparser, cffi, cryptography, pyOpenSSL, requests
  Running setup.py install for cryptography ... error
    Complete output from command /home/username/.local/venvs/ansible/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-21OGFh/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-Dm7lIL-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/username/.local/venvs/ansible/include/site/python2.7/cryptography:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography
    copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat
    copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat
    creating build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
    copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
    copying src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
    copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
    copying src/cryptography/hazmat/primitives/interfaces/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
    running egg_info
    writing requirements to src/cryptography.egg-info/requires.txt
    writing src/cryptography.egg-info/PKG-INFO
    writing top-level names to src/cryptography.egg-info/top_level.txt
    writing dependency_links to src/cryptography.egg-info/dependency_links.txt
    writing entry points to src/cryptography.egg-info/entry_points.txt
    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files matching '*' found under directory 'vectors'
    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
    running build_ext
    generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'
    creating build/temp.linux-x86_64-2.7
    generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'
    generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'
    building '_openssl' extension
    creating build/temp.linux-x86_64-2.7/build
    creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
    build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory
     #include <openssl/opensslv.h>
                                  ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/home/username/.local/venvs/ansible/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-21OGFh/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-Dm7lIL-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/username/.local/venvs/ansible/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-21OGFh/cryptography/
username@debian:~/src/pimp-my-box$ ./scripts/install_ansible.sh
*** Checking build essentials
*** Checking virtualenv
*** Checking Python development support
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/username/.local/venvs/ansible/bin/python2
Not overwriting existing python script /home/username/.local/venvs/ansible/bin/python (you must use /home/username/.local/venvs/ansible/bin/python2)
Installing setuptools, pip...done.
Traceback (most recent call last):
  File "bin/pip", line 7, in <module>
    from pip import main
  File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pip/__init__.py", line 76, in <module>
    from pip.commands import commands, get_summaries, get_similar_commands
  File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pip/commands/__init__.py", line 6, in <module>
    from pip.commands.bundle import BundleCommand
  File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pip/commands/bundle.py", line 6, in <module>
    from pip.commands.install import InstallCommand
  File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pip/commands/install.py", line 5, in <module>
    from pip.req import InstallRequirement, RequirementSet, parse_requirements
  File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pip/req/__init__.py", line 3, in <module>
    from .req_install import InstallRequirement
  File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pip/req/req_install.py", line 42, in <module>
    from pip.utils.hashes import Hashes
  File "/home/username/.local/venvs/ansible/local/lib/python2.7/site-packages/pip/utils/hashes.py", line 5, in <module>
    from pip.exceptions import HashMismatch, HashMissing, InstallationError
ImportError: cannot import name HashMissing

ansible box -i hosts -m setup -a "filter=*distribution*" FAILS

I am following the guide https://pimp-my-box.readthedocs.io/en/latest/setup.html
All is well until I reach the section where I am required to run the command:

ansible box -i hosts -m setup -a "filter=*distribution*"

I may also add that ssh -vvvv my-box works and logs me in and I can become root.

Any idea, please?

user@home:~/src/pimp-my-box$ ansible box -vvvv -i hosts -m setup -a "filter=*distribution*"
<my-box> ESTABLISH CONNECTION FOR USER: setup
<my-box> REMOTE_MODULE setup filter=*distribution*
<my-box> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/user/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=setup -o ConnectTimeout=10 my-box /bin/sh -c 'mkdir -p $HOME/.local/ansible/tmp/ansible-tmp-1542137409.37-163659312740915 && chmod a+rx $HOME/.local/ansible/tmp/ansible-tmp-1542137409.37-163659312740915 && echo $HOME/.local/ansible/tmp/ansible-tmp-1542137409.37-163659312740915'
<my-box> PUT /tmp/tmpQJcsGw TO /home/setup/.local/ansible/tmp/ansible-tmp-1542137409.37-163659312740915/setup
<my-box> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/user/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=setup -o ConnectTimeout=10 my-box /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=bmpkzedinkutcdhuvjimwcfkxtodbfjn] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-bmpkzedinkutcdhuvjimwcfkxtodbfjn; LANG=C LC_CTYPE=C /usr/bin/python /home/setup/.local/ansible/tmp/ansible-tmp-1542137409.37-163659312740915/setup; rm -rf /home/setup/.local/ansible/tmp/ansible-tmp-1542137409.37-163659312740915/ >/dev/null 2>&1'"'"''
my-box | FAILED >> {
    "failed": true, 
    "msg": "BECOME-SUCCESS-bmpkzedinkutcdhuvjimwcfkxtodbfjn\r\n/bin/sh: 1: /usr/bin/python: not found\r\nOpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/user/.ssh/config\r\ndebug1: /home/user/.ssh/config line 1: Applying options for my-box\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4910\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to REDACTED_THE_IP_ADDRESS closed.\r\n", 
    "parsed": false
}

/var/torrent/.scgi_local not accessible by www-data

This breaks certain apps that uses /RPC2 such as transdroid.

Possible solution includes moving the .scgi_local somewhere else or changing the group owner for /home/rtorrent.

Currently I'm just using setfacl to give www-data access to that one socket file.

Error running ansible-playbook

Following the steps on https://pimp-my-box.readthedocs.io/en/latest/setup.html

When running ansible-playbook I get the following error.

โฏ ansible-playbook -i hosts site.yml
ERROR! 'include' is not a valid attribute for a Play

The error appears to be in '/Users/user/pimp-my-box/site.yml': line 3, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

# All available playbooks
- include: common.yml
  ^ here

Add rtxmlrpc / rtdata groups

Add more fine-grained control over granted group rights.

  • rtxmlrpc specifically for the socket
  • rtdata as the runtime group (and thus for written data), via sg

python environment not setup correctly on fresh Debian 8 install

I have a fresh Debian 8 install.

Used pimp-my-box to install, but the default environment complains about "--no-error" is not a version and the default python environment is not loaded.

i removed the --no-error elements from pyenv.sh and now ever prompt says pyenv-virtualenv: version 2.7.13' is not a virtualenv` which I haven't been able to resolve.

my hack workaround is to add PYTHONPATH to the start script

Support for Ubuntu Bionic

It was installing when I Remove the lines for libav from within the main.yml file located in the common/task folder, but now it is stuck again look below.

TASK [rutorrent : Load distro-specific variables] **********************************************************************
ok: [my-box] => (item=/home/remote/src/pimp-my-box/roles/rutorrent/vars/os_default.yml)

TASK [rutorrent : Create rutorrent group] ******************************************************************************
changed: [my-box]

TASK [rutorrent : Create rutorrent user] *******************************************************************************
changed: [my-box]

TASK [rutorrent : Add rtorrent user to www-data group] *****************************************************************
changed: [my-box]

TASK [rutorrent : Create rutorrent home directories] *******************************************************************
changed: [my-box] => (item=.)
changed: [my-box] => (item=bin)
changed: [my-box] => (item=src)
changed: [my-box] => (item=profile)
changed: [my-box] => (item=profile/users)
changed: [my-box] => (item=profile/settings)
changed: [my-box] => (item=profile/torrents)

TASK [rutorrent : Install PHP packages] ********************************************************************************
failed: [my-box] (item=[u'php5-cli', u'php5-fpm', u'php-apc']) => {"changed": false, "item": ["php5-cli", "php5-fpm", "php-apc"], "msg": "No package matching 'php5-cli' is available"}
to retry, use: --limit @/home/remote/src/pimp-my-box/site.retry

PLAY RECAP *************************************************************************************************************
my-box : ok=60 changed=44 unreachable=0 failed=1

Support for Ubuntu Bionic

Hello I'm using ansible to run pimp-my box for the target server ubuntu 18.04 Bionic, I'm getting the error below. I hope you can help me fix this Thanks.

remote@DESKTOP-SGFJC4U:~/src/pimp-my-box$ sudo ansible-playbook -i hosts site.yml -v
Using /etc/ansible/ansible.cfg as config file
[DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be
removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo'
(default). This feature will be removed in version 2.6. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

PLAY [box] *************************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************
ok: [my-box]

TASK [common : Update APT cache] ***************************************************************************************
changed: [my-box] => {"cache_update_time": 1525635970, "cache_updated": true, "changed": true}

TASK [common : Install basic tools] ************************************************************************************
ok: [my-box] => (item=[u'autossh', u'bash-completion', u'bc', u'bind9-host', u'bzip2', u'cfv', u'colordiff', u'coreutils', u'curl', u'gawk', u'genisoimage', u'git', u'haveged', u'htop', u'httpie', u'inxi', u'iotop', u'lftp', u'links', u'lnav', u'lsb-release', u'lsof', u'mailutils', u'mediainfo', u'mkvtoolnix', u'ncdu', u'p7zip-full', u'psmisc', u'python-virtualenv', u'sysstat', u'tmux', u'unzip', u'vim', u'virtualenvwrapper', u'vnstat', u'wget', u'zip']) => {"cache_update_time": 1525635970, "cache_updated": false, "changed": false, "item": ["autossh", "bash-completion", "bc", "bind9-host", "bzip2", "cfv", "colordiff", "coreutils", "curl", "gawk", "genisoimage", "git", "haveged", "htop", "httpie", "inxi", "iotop", "lftp", "links", "lnav", "lsb-release", "lsof", "mailutils", "mediainfo", "mkvtoolnix", "ncdu", "p7zip-full", "psmisc", "python-virtualenv", "sysstat", "tmux", "unzip", "vim", "virtualenvwrapper", "vnstat", "wget", "zip"]}

TASK [common : Install ffmpeg] *****************************************************************************************
skipping: [my-box] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [common : Install libav] ******************************************************************************************
fatal: [my-box]: FAILED! => {"changed": false, "msg": "No package matching 'libav-tools' is available"}
to retry, use: --limit @/home/remote/src/pimp-my-box/site.retry

PLAY RECAP *************************************************************************************************************
my-box : ok=3 changed=1 unreachable=0 failed=1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.