Skip to content

Instantly share code, notes, and snippets.

@bleader
Created July 7, 2013 22:40
Show Gist options
  • Save bleader/5945242 to your computer and use it in GitHub Desktop.
Save bleader/5945242 to your computer and use it in GitHub Desktop.
$ ansible-playbook -i ./hosts ./buildsys.yaml
PLAY [Prepare target for compilation] *****************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [packages] **************************************************************
ok: [localhost] => (item=build-essential,subversion,git,vim,screen,libncurses5-dev,libxslt1-dev,xsltproc,bison,gawk,sudo,libxml2-utils,texinfo)
TASK: [user name=lfs state=present groups=users password=$1$SomeSalt$SnQ5qJUEb6YYXlZXVofHS/] ***
ok: [localhost]
TASK: [copy src=./files/lfs_sudoer dest=/etc/sudoers.d/lfs_user] **************
ok: [localhost]
TASK: [authorized_key user=lfs key="ssh-dss AAAAB3NzaC1kc3MAAACBAIvoRsqP581VpRuDxjRpRFgA+/wzzNAM+/LfbrPI5evtDRku/BKfe5q2GVqoI0w5K9ZsqXIvKg4d7L6W0JwPeaWYRj2y6uN8ARloaKGcp7K3Spenn6kKmCN+wSRD5NqOc6yNKtq3Ao00XnX2HcWxMfqvsAPw2A0JAv4wiB3ywgX9AAAAFQDE5VrVXaQjigWOdfg0BhyhbZgsgwAAAIBLTmLGj90p8+0aWZnNqFgye3vYdpuSPn3IBrRCb3bhOpe1IyNMXZHUOqVKOMBtV7WWVRGOPp2+9cDslyy0KgrMZtMf/kFjUazutQq/WUCTKr2RDLbheofyFyxk2jGyAsj8UD5BWjAAWurmIiJIiS8AUYE9w2iYAW/AquUAyPSA5QAAAIA0IF23cRNZsB7In3+Mh0L9yMg9tNU0qezqYYCXttDBMcg6oWKDzXDn5lGstc5IwtkzRFuF++jZvguzug7jhZpt2apJIV2BMMB9+KLwCXJ3iSTvqG8rzJmjEdkg/73j6AHRI0ASroLu7/njXE/ZiimpMrJy1YhbgR9Ie8QizEKY4w== bleader@greebo" state=present] ***
ok: [localhost]
PLAY [Compile basesys] ********************************************************
TASK: [subversion repo=svn://svn.linuxfromscratch.org/ALFS/jhalfs/trunk dest=./jhalfs] ***
ok: [localhost]
TASK: [file path=/home/lfs/build-7.3 state=directory] *************************
ok: [localhost]
TASK: [file path=/home/lfs/kernels state=directory] ***************************
ok: [localhost]
TASK: [template src=./files/jhalfs.j2 dest=/home/lfs/jhalfs/cfg] **************
ok: [localhost]
TASK: [copy src=./files/{{lfs_ver}}/{{ansible_architecture}}-kernel.cfg dest=/home/lfs/kernels/{{ansible_architecture}}-{{lfs_ver}}.cfg] ***
ok: [localhost]
TASK: [shell echo yes > yes chdir=/home/lfs/jhalfs creates=yes] ***************
skipping: [localhost]
TASK: [shell make config < ./cfg chdir=/home/lfs/jhalfs creates=configuration] ***
skipping: [localhost]
TASK: [shell ./jhalfs run < ./yes chdir=/home/lfs/jhalfs creates=/home/lfs/build-7.3/jhalfs] ***
skipping: [localhost]
TASK: [file path=/home/lfs/build-7.3/sources state=directory] *****************
ok: [localhost]
TASK: [get_url url= dest=/home/lfs/build-7.3/sources/] ************************
ok: [localhost] => (item=http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/automake/automake-1.13.1.tar.xz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/binutils/binutils-2.23.1.tar.bz2)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/bison/bison-2.7.tar.xz)
ok: [localhost] => (item=http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz)
ok: [localhost] => (item=http://sourceforge.net/projects/check/files/check/0.9.9/check-0.9.9.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/dejagnu/dejagnu-1.5.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/diffutils/diffutils-3.2.tar.gz)
ok: [localhost] => (item=http://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-1.42.7.tar.gz)
ok: [localhost] => (item=http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz)
ok: [localhost] => (item=ftp://ftp.astron.com/pub/file/file-5.13.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/findutils/findutils-4.4.2.tar.gz)
ok: [localhost] => (item=http://prdownloads.sourceforge.net/flex/flex-2.5.37.tar.bz2)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/gawk/gawk-4.0.2.tar.xz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/gdbm/gdbm-1.10.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/gettext/gettext-0.18.2.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.xz)
ok: [localhost] => (item=ftp://ftp.gmplib.org/pub/gmp-5.1.1/gmp-5.1.1.tar.xz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/grep/grep-2.14.tar.xz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/groff/groff-1.22.2.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/grub/grub-2.00.tar.xz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/gzip/gzip-1.5.tar.xz)
ok: [localhost] => (item=http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/conglomeration//iana-etc/iana-etc-2.30.tar.bz2)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/inetutils/inetutils-1.9.1.tar.gz)
ok: [localhost] => (item=http://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-3.8.0.tar.xz)
ok: [localhost] => (item=http://ftp.altlinux.org/pub/people/legion/kbd/kbd-1.15.5.tar.gz)
ok: [localhost] => (item=http://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-12.tar.xz)
ok: [localhost] => (item=http://www.greenwoodsoftware.com/less/less-451.tar.gz)
ok: [localhost] => (item=http://www.linuxfromscratch.org/lfs/downloads/7.3/lfs-bootscripts-20130123.tar.bz2)
ok: [localhost] => (item=http://download.savannah.gnu.org/releases/libpipeline/libpipeline-1.2.2.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz)
ok: [localhost] => (item=http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.8.1.tar.xz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.bz2)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/make/make-3.82.tar.bz2)
ok: [localhost] => (item=http://download.savannah.gnu.org/releases/man-db/man-db-2.6.3.tar.xz)
ok: [localhost] => (item=http://www.kernel.org/pub/linux/docs/man-pages/man-pages-3.47.tar.xz)
ok: [localhost] => (item=http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz)
ok: [localhost] => (item=http://www.mpfr.org/mpfr-3.1.1/mpfr-3.1.1.tar.xz)
ok: [localhost] => (item=ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/patch/patch-2.7.1.tar.xz)
ok: [localhost] => (item=http://www.cpan.org/src/5.0/perl-5.16.2.tar.bz2)
ok: [localhost] => (item=http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz)
ok: [localhost] => (item=http://sourceforge.net/projects/procps-ng/files/Production/procps-ng-3.3.6.tar.xz)
ok: [localhost] => (item=http://prdownloads.sourceforge.net/psmisc/psmisc-22.20.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/sed/sed-4.2.2.tar.bz2)
ok: [localhost] => (item=http://pkg-shadow.alioth.debian.org/releases/shadow-4.1.5.1.tar.bz2)
ok: [localhost] => (item=http://www.infodrom.org/projects/sysklogd/download/sysklogd-1.5.tar.gz)
ok: [localhost] => (item=http://download.savannah.gnu.org/releases/sysvinit/sysvinit-2.88dsf.tar.bz2)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/tar/tar-1.26.tar.bz2)
ok: [localhost] => (item=http://prdownloads.sourceforge.net/tcl/tcl8.6.0-src.tar.gz)
ok: [localhost] => (item=http://www.iana.org//time-zones/repository/releases/tzdata2012j.tar.gz)
ok: [localhost] => (item=http://ftp.gnu.org/gnu/texinfo/texinfo-5.0.tar.xz)
ok: [localhost] => (item=http://www.freedesktop.org/software/systemd/systemd-197.tar.xz)
ok: [localhost] => (item=http://anduin.linuxfromscratch.org/sources/other/udev-lfs-197-2.tar.bz2)
ok: [localhost] => (item=http://www.kernel.org/pub/linux/utils/util-linux/v2.22/util-linux-2.22.2.tar.xz)
ok: [localhost] => (item=ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2)
ok: [localhost] => (item=http://tukaani.org/xz/xz-5.0.4.tar.xz)
ok: [localhost] => (item=http://freefr.dl.sourceforge.net/project/libpng/zlib/1.2.7/zlib-1.2.7.tar.bz2)
ok: [localhost] => (item=http://www.linuxfromscratch.org/patches/lfs/7.3/bash-4.2-fixes-11.patch)
ok: [localhost] => (item=http://www.linuxfromscratch.org/patches/lfs/7.3/binutils-2.23.1-testsuite_fix-1.patch)
ok: [localhost] => (item=http://www.linuxfromscratch.org/patches/lfs/7.3/bzip2-1.0.6-install_docs-1.patch)
ok: [localhost] => (item=http://www.linuxfromscratch.org/patches/lfs/7.3/coreutils-8.21-i18n-1.patch)
ok: [localhost] => (item=http://www.linuxfromscratch.org/patches/lfs/7.3/flex-2.5.37-bison-2.6.1-1.patch)
ok: [localhost] => (item=http://www.linuxfromscratch.org/patches/lfs/7.3/kbd-1.15.5-backspace-1.patch)
ok: [localhost] => (item=http://www.linuxfromscratch.org/patches/lfs/7.3/make-3.82-upstream_fixes-3.patch)
ok: [localhost] => (item=http://www.linuxfromscratch.org/patches/lfs/7.3/perl-5.16.2-libc-1.patch)
ok: [localhost] => (item=http://www.linuxfromscratch.org/patches/lfs/7.3/readline-6.2-fixes-1.patch)
ok: [localhost] => (item=http://ftp.gnu.org/pub/gnu/cpio/cpio-2.11.tar.bz2)
ok: [localhost] => (item=http://ftp.netbsd.org/pub/pkgsrc/stable/pkgsrc.tar.xz)
TASK: [copy src=./files/7.3/041-check dest=/home/lfs/build-7.3/jhalfs/lfs-commands/chapter05/041-check] ***
ok: [localhost]
TASK: [shell MAKEOPTS=-j8 make chdir=/home/lfs/build-7.3/jhalfs creates=/home/lfs/build-7.3/jhalfs/logs/144-kernel] ***
skipping: [localhost]
PLAY [build basesys archive] **************************************************
TASK: [file path=/home/lfs/pkgs state=directory] ******************************
ok: [localhost]
TASK: [copy src=./mkinitramfs dest=/home/lfs/build-7.3/sbin/mkinitramfs mode=0755] ***
ok: [localhost]
TASK: [file path=/home/lfs/build-7.3/usr/share/mkinitramfs state=directory] ***
ok: [localhost]
TASK: [shell touch /home/lfs/build-7.3/etc/udev/udev.conf creates=/home/lfs/build-7.3/etc/udev/udev.conf] ***
skipping: [localhost]
TASK: [copy src=./mkinitramfs-init.in dest=/home/lfs/build-7.3/usr/share/mkinitramfs/init.in] ***
ok: [localhost]
TASK: [copy src=./ramdisk.sh dest=/home/lfs/build-7.3/sources/ramdisk.sh mode=0755] ***
ok: [localhost]
TASK: [shell chroot /home/lfs/build-7.3 /usr/bin/env -i HOME=/root TERM="$TERM" PS1=\u:\w$ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/usr/pkg/bin:/usr/pkg/sbin /sources/ramdisk.sh creates=/home/lfs/build-7.3/boot/initrd.img-3.8.1] ***
skipping: [localhost]
TASK: [shell tar -C /home/lfs/build-7.3 --exclude=jhalfs --exclude=tools --exclude=sources -cJf /home/lfs/pkgs/basesys-{{lfs_ver}}-{{ansible_architecture}}.tar.xz . creates=/home/lfs/pkgs/basesys-{{lfs_ver}}-{{ansible_architecture}}.tar.xz] ***
changed: [localhost]
PLAY [Build pkgsrc tools] *****************************************************
TASK: [file path=/home/lfs/tmp_chroot state=directory] ************************
changed: [localhost]
TASK: [shell tar -C /home/lfs/tmp_chroot -xf /home/lfs/pkgs/basesys-{{lfs_ver}}-{{ansible_architecture}}.tar.xz creates=/home/lfs/tmp_chroot/usr] ***
changed: [localhost]
TASK: [shell tar -C /home/lfs/tmp_chroot/usr -xf /home/lfs/build-7.3/sources/pkgsrc.tar.xz creates=/home/lfs/tmp_chroot/usr/pkgsrc] ***
changed: [localhost]
TASK: [copy src=./files/resolv.conf dest=/home/lfs/tmp_chroot/etc/resolv.conf] ***
changed: [localhost]
TASK: [shell chroot /home/lfs/tmp_chroot /usr/bin/env -i HOME=/root TERM="$TERM" PS1=\u:\w$ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/usr/pkg/bin:/usr/pkg/sbin /usr/pkgsrc/bootstrap/bootstrap creates=/home/lfs/tmp_chroot/usr/pkg] ***
changed: [localhost]
TASK: [shell tar -C /home/lfs/tmp_chroot/ -cJf /home/lfs/pkgs/pkgsrc-bootstrap-{{lfs_ver}}-{{ansible_architecture}}.tar.gz usr/pkg var/db/pkg creates=/home/lfs/pkgs/pkgsrc-bootstrap-{{lfs_ver}}-{{ansible_architecture}}.tar.gz] ***
changed: [localhost]
TASK: [shell chroot /home/lfs/tmp_chroot /usr/bin/env -i HOME=/root TERM="$TERM" PS1=\u:\w$ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/usr/pkg/bin:/usr/pkg/sbin bash -c '( cd /usr/pkgsrc/pkgtools/pkgin && bmake package )' creates=/home/lfs/tmp_chroot/usr/pkgsrc/packages/All] ***
changed: [localhost]
TASK: [shell mv /home/lfs/tmp_chroot/usr/pkgsrc/packages /home/lfs/pkgs creates=/home/lfs/pkgs/packages/All] ***
changed: [localhost]
TASK: [file path=/home/lfs/tmp_chroot state=absent] ***************************
changed: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=28 changed=10 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment