local-builder.yaml revision 2ac29ca3
1---
2- import_playbook: ../common-packer/provision/baseline.yaml
3
4- hosts: all
5  become_user: root
6  become_method: sudo
7
8  pre_tasks:
9    - include_role: name=lfit.system-update
10
11  tasks:
12    - name: 'Install FD.io Required 16.04 Packages'
13      apt:
14        name:
15          - gdb
16          - gdbserver
17          - bridge-utils
18          - texlive-fonts-recommended
19          - tex-common
20          - texlive-base
21          - texlive-binaries
22          - texlive-pictures
23          - texlive-latex-recommended
24          - preview-latex-style
25          - texlive-latex-extra
26          - cloud-initramfs-growroot
27          - cloud-initramfs-rescuevol
28          - libmysqlclient-dev
29          - doxygen
30          - python-pyparsing
31          - asciidoc
32          - dblatex
33          - source-highlight
34          - lcov
35          - gcc-multilib
36          - bison
37          - ccache
38          - dkms
39          - libganglia1-dev
40          - libapr1-dev
41          - libconfuse-dev
42          - exuberant-ctags
43          - cscope
44          - indent
45          - emacs
46          - libxslt-dev
47          - bc
48          - linux-image-extra-virtual
49          - google-mock
50          - debian-xcontrol
51          - pristine-tar
52          - python-sphinx
53          - python-scapy
54          - inkscape
55          - python-sphinx-rtd-theme
56          - python3-sphinx
57          - libnuma-dev
58          - libibverbs-dev
59          - ruby-dev
60          - zip
61        state: present
62      # yamllint disable-line rule:line-length
63      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04'
64      become: true
65
66    - name: 'Install FD.io Required 18.04 Packages'
67      apt:
68        name:
69          - gdb
70          - gdbserver
71          - bridge-utils
72          - texlive-fonts-recommended
73          - tex-common
74          - texlive-base
75          - texlive-binaries
76          - texlive-pictures
77          - texlive-latex-recommended
78          - preview-latex-style
79          - texlive-latex-extra
80          - cloud-initramfs-growroot
81          - cloud-initramfs-rescuevol
82          - libmysqlclient-dev
83          - doxygen
84          - python-pyparsing
85          - asciidoc
86          - dblatex
87          - source-highlight
88          - lcov
89          - bison
90          - ccache
91          - dkms
92          - libganglia1-dev
93          - libapr1-dev
94          - libconfuse-dev
95          - exuberant-ctags
96          - cscope
97          - indent
98          - emacs
99          - libxslt-dev
100          - bc
101          - linux-image-extra-virtual
102          - google-mock
103          - debian-xcontrol
104          - pristine-tar
105          - python-sphinx
106          - libstdc++5
107          - python-scapy
108          - inkscape
109          - python-sphinx-rtd-theme
110          - python3-sphinx
111          - libnuma-dev
112          - libibverbs-dev
113          - ruby-dev
114          - zip
115          - libevent-dev
116          - libboost-system-dev
117          - libcurl4-openssl-dev
118          - libboost-regex-dev
119          - libboost-filesystem-dev
120          - git-core
121          - libqtav-dev
122          - libavcodec-dev
123          - libavformat-dev
124          - libswscale-dev
125          - libavresample-dev
126        state: present
127      # yamllint disable-line rule:line-length
128      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
129      become: true
130
131    - name: 'Install FD.io Required CentOS 7 Packages'
132      yum:
133        name:
134          - apr-devel
135          - asciidoc
136          - autoconf
137          - ccache
138          - dblatex
139          - dkms
140          - epel-rpm-macros
141          - ganglia-devel
142          - glibc-static
143          - kernel-devel
144          - libcap-devel
145          - libconfuse-devel
146          - libconfuse-devel
147          - python-sphinx
148          - redhat-lsb
149          - ruby-devel
150          - scapy
151          - source-highlight
152          - valgrind
153        state: present
154      when: ansible_os_family == 'RedHat'
155      become: true
156
157    - name: 'Install rake gem'
158      command: 'gem install rake'
159      become: true
160
161    - name: 'Install PackageCloud'
162      command: 'gem install package_cloud'
163      become: true
164
165  roles:
166    - lfit.mono-install
167
168  post_tasks:
169    - name: System Reseal
170      script: ../common-packer/provision/system-reseal.sh
171      become: true
172