├── README.md
├── files
├── alpine-default.conf
├── bootstrap.j2
├── dnsmasq.j2
├── dvwa.j2
├── lighttpd.j2
├── motd.j2
└── repositories.j2
├── handlers
├── services.yml
└── system.yml
├── maintenance.yml
├── maintenance
├── README.md
├── clean-cache.yml
├── lighttpd.yml
├── linfo.yml
├── phpsysinfo.yml
└── update.yml
├── setup.yml
├── tasks
├── apk-repositories.yml
├── bootstrap.yml
├── cleanup.yml
├── dnsmasq.yml
├── lighttpd.yml
├── motd.yml
├── phpinfo.yml
├── pkg-management.yml
├── preparation.yml
├── security
│ ├── b374k.yml
│ ├── bwapp.yml
│ ├── dvwa.yml
│ ├── mutillidae.yml
│ ├── phpshell.yml
│ └── sqlol.yml
├── setup-devel.yml
├── update.yml
└── webapp
│ ├── linfo.yml
│ ├── php-shell-detector.yml
│ └── phpsysinfo.yml
└── variables
├── alpine-versions.yml
├── application-versions.yml
└── sensitive.yml
/README.md:
--------------------------------------------------------------------------------
1 | # Alpine Linux - Ansible Contrib Repository
2 |
3 | This repository contains user-contributed real world examples for Ansible
4 | playbooks, especially for Alpine Linux, as well as modules that are not a part
5 | of Ansible's core distribution.
6 |
7 | This is designed to be a resource to folks learning configuring Alpine Linux
8 | with Ansible, as well as a way to share useful resources of all kinds.
9 |
10 | If you have just found Ansible or Alpine Linux, you should start here:
11 |
12 | * [Alpine Linux](http://www.alpinelinux.org)
13 | * [Ansible project](https://github.com/ansible/ansible) -- see the examples directory
14 |
15 | ## Prerequisites
16 |
17 | The [Documentation](http://wiki.alpinelinux.org/wiki/Ansible) helps
18 | you to get started.
19 |
20 | ## Structure
21 |
22 | At the moment the structure of the repository looks like this:
23 |
24 | ```bash
25 | .
26 | ├── files ----------- Template files
27 | ├── handlers -------- Handlers for Alpine Linux services
28 | ├── maintenance ----- Complete playbooks
29 | ├── maintenance.yml - Regular tasks to perform on a running system
30 | ├── modules --------- Modules especially for Alpine Linux
31 | ├── README.md ------- This files
32 | ├── tasks ----------- A collection of tasks
33 | ├── setup.yml ------- Collected tasks for a fresh installed system
34 | └── variables ------- Storage files for variables
35 | ```
36 |
37 | ## Warning
38 | *Think first* before you implement stuff from this repository. Consider the
39 | playbooks in this repository as a show case. Somethings doesn't make sense, are
40 | nasty hacks, or easier to do with another approach.
41 |
42 | ## Licensing
43 |
44 | Examples and modules should be licensed GPLv3 per the rest of Ansible, to
45 | encourage modules to graduate from contrib to core.
46 |
47 | All playbook content is assumed to be Creative Commons 3.0 Attribution licensed.
48 | Non-commerical or No-derivatives CC extensions are not acceptable, to encourage
49 | easy use by all users, regardless of purpose.
50 |
--------------------------------------------------------------------------------
/files/alpine-default.conf:
--------------------------------------------------------------------------------
1 | # Example answer file for setup-alpine script
2 | # If you don't want to use a certain option, then comment it out
3 |
4 | # Use Swiss German layout
5 | KEYMAPOPTS="de de_CH-latin1"
6 |
7 | # Set hostname to alpine-test
8 | HOSTNAMEOPTS="-n alpine-test"
9 |
10 | # Contents of /etc/network/interfaces
11 | INTERFACESOPTS="auto lo
12 | iface lo inet loopback
13 |
14 | auto eth0
15 | iface eth0 inet dhcp
16 | hostname alpine-test
17 | "
18 |
19 | # Search domain of example.com, Google public nameserver
20 | DNSOPTS="-d example.com -n 8.8.8.8"
21 |
22 | # Set timezone to UTC
23 | TIMEZONEOPTS="-z UTC"
24 |
25 | # set http/ftp proxy
26 | #PROXYOPTS="http://webproxy:8080"
27 |
28 | # Add a random mirror
29 | APKREPOSOPTS="-r"
30 |
31 | # Install Openssh
32 | SSHDOPTS="-c openssh"
33 |
34 | # Use openntpd
35 | NTPOPTS="-c openntpd"
36 |
37 | # Use /dev/sda as a data disk
38 | DISKOPTS="-m sys /dev/vda"
39 |
40 | # Setup in /media/sdb1
41 | #LBUOPTS="/media/sdb1"
42 | #APKCACHEOPTS="/media/sdb1/cache"
43 |
44 |
--------------------------------------------------------------------------------
/files/bootstrap.j2:
--------------------------------------------------------------------------------
1 |
2 |
3 |
73 | Lighttpd is running on {{ ansible_distribution }} {{ ansible_distribution_version }}
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
93 |
94 |
95 |
96 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
--------------------------------------------------------------------------------
/files/dnsmasq.j2:
--------------------------------------------------------------------------------
1 | # Configuration file for dnsmasq.
2 | #
3 | # Format is one option per line, legal options are the same
4 | # as the long options legal on the command line. See
5 | # "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
6 |
7 | # Listen on this specific port instead of the standard DNS port
8 | # (53). Setting this to zero completely disables DNS function,
9 | # leaving only DHCP and/or TFTP.
10 | #port=5353
11 |
12 | # The following two options make you a better netizen, since they
13 | # tell dnsmasq to filter out queries which the public DNS cannot
14 | # answer, and which load the servers (especially the root servers)
15 | # unnecessarily. If you have a dial-on-demand link they also stop
16 | # these requests from bringing up the link unnecessarily.
17 |
18 | # Never forward plain names (without a dot or domain part)
19 | #domain-needed
20 | # Never forward addresses in the non-routed address spaces.
21 | #bogus-priv
22 |
23 |
24 | # Uncomment this to filter useless windows-originated DNS requests
25 | # which can trigger dial-on-demand links needlessly.
26 | # Note that (amongst other things) this blocks all SRV requests,
27 | # so don't use it if you use eg Kerberos, SIP, XMMP or Google-talk.
28 | # This option only affects forwarding, SRV records originating for
29 | # dnsmasq (via srv-host= lines) are not suppressed by it.
30 | #filterwin2k
31 |
32 | # Change this line if you want dns to get its upstream servers from
33 | # somewhere other that /etc/resolv.conf
34 | #resolv-file=
35 |
36 | # By default, dnsmasq will send queries to any of the upstream
37 | # servers it knows about and tries to favour servers to are known
38 | # to be up. Uncommenting this forces dnsmasq to try each query
39 | # with each server strictly in the order they appear in
40 | # /etc/resolv.conf
41 | #strict-order
42 |
43 | # If you don't want dnsmasq to read /etc/resolv.conf or any other
44 | # file, getting its servers from this file instead (see below), then
45 | # uncomment this.
46 | #no-resolv
47 |
48 | # If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
49 | # files for changes and re-read them then uncomment this.
50 | #no-poll
51 |
52 | # Add other name servers here, with domain specs if they are for
53 | # non-public domains.
54 | #server=/localnet/192.168.0.1
55 |
56 | # Example of routing PTR queries to nameservers: this will send all
57 | # address->name queries for 192.168.3/24 to nameserver 10.1.2.3
58 | #server=/3.168.192.in-addr.arpa/10.1.2.3
59 |
60 | # Add local-only domains here, queries in these domains are answered
61 | # from /etc/hosts or DHCP only.
62 | #local=/localnet/
63 |
64 | # Add domains which you want to force to an IP address here.
65 | # The example below send any host in double-click.net to a local
66 | # web-server.
67 | #address=/double-click.net/127.0.0.1
68 |
69 | # --address (and --server) work with IPv6 addresses too.
70 | #address=/www.thekelleys.org.uk/fe80::20d:60ff:fe36:f83
71 |
72 | # Add the IPs of all queries to yahoo.com, google.com, and their
73 | # subdomains to the vpn and search ipsets:
74 | #ipset=/yahoo.com/google.com/vpn,search
75 |
76 | # You can control how dnsmasq talks to a server: this forces
77 | # queries to 10.1.2.3 to be routed via eth1
78 | # server=10.1.2.3@eth1
79 |
80 | # and this sets the source (ie local) address used to talk to
81 | # 10.1.2.3 to 192.168.1.1 port 55 (there must be a interface with that
82 | # IP on the machine, obviously).
83 | # server=10.1.2.3@192.168.1.1#55
84 |
85 | # If you want dnsmasq to change uid and gid to something other
86 | # than the default, edit the following lines.
87 | #user=
88 | #group=
89 |
90 | # If you want dnsmasq to listen for DHCP and DNS requests only on
91 | # specified interfaces (and the loopback) give the name of the
92 | # interface (eg eth0) here.
93 | # Repeat the line for more than one interface.
94 | #interface=
95 | # Or you can specify which interface _not_ to listen on
96 | #except-interface=
97 | # Or which to listen on by address (remember to include 127.0.0.1 if
98 | # you use this.)
99 | #listen-address=
100 | # If you want dnsmasq to provide only DNS service on an interface,
101 | # configure it as shown above, and then use the following line to
102 | # disable DHCP and TFTP on it.
103 | #no-dhcp-interface=
104 |
105 | # On systems which support it, dnsmasq binds the wildcard address,
106 | # even when it is listening on only some interfaces. It then discards
107 | # requests that it shouldn't reply to. This has the advantage of
108 | # working even when interfaces come and go and change address. If you
109 | # want dnsmasq to really bind only the interfaces it is listening on,
110 | # uncomment this option. About the only time you may need this is when
111 | # running another nameserver on the same machine.
112 | #bind-interfaces
113 |
114 | # If you don't want dnsmasq to read /etc/hosts, uncomment the
115 | # following line.
116 | #no-hosts
117 | # or if you want it to read another file, as well as /etc/hosts, use
118 | # this.
119 | #addn-hosts=/etc/banner_add_hosts
120 |
121 | # Set this (and domain: see below) if you want to have a domain
122 | # automatically added to simple names in a hosts-file.
123 | #expand-hosts
124 |
125 | # Set the domain for dnsmasq. this is optional, but if it is set, it
126 | # does the following things.
127 | # 1) Allows DHCP hosts to have fully qualified domain names, as long
128 | # as the domain part matches this setting.
129 | # 2) Sets the "domain" DHCP option thereby potentially setting the
130 | # domain of all systems configured by DHCP
131 | # 3) Provides the domain part for "expand-hosts"
132 | #domain=thekelleys.org.uk
133 |
134 | # Set a different domain for a particular subnet
135 | #domain=wireless.thekelleys.org.uk,192.168.2.0/24
136 |
137 | # Same idea, but range rather then subnet
138 | #domain=reserved.thekelleys.org.uk,192.68.3.100,192.168.3.200
139 |
140 | # Uncomment this to enable the integrated DHCP server, you need
141 | # to supply the range of addresses available for lease and optionally
142 | # a lease time. If you have more than one network, you will need to
143 | # repeat this for each network on which you want to supply DHCP
144 | # service.
145 | #dhcp-range=192.168.0.50,192.168.0.150,12h
146 |
147 | # This is an example of a DHCP range where the netmask is given. This
148 | # is needed for networks we reach the dnsmasq DHCP server via a relay
149 | # agent. If you don't know what a DHCP relay agent is, you probably
150 | # don't need to worry about this.
151 | #dhcp-range=192.168.0.50,192.168.0.150,255.255.255.0,12h
152 |
153 | # This is an example of a DHCP range which sets a tag, so that
154 | # some DHCP options may be set only for this network.
155 | #dhcp-range=set:red,192.168.0.50,192.168.0.150
156 |
157 | # Use this DHCP range only when the tag "green" is set.
158 | #dhcp-range=tag:green,192.168.0.50,192.168.0.150,12h
159 |
160 | # Specify a subnet which can't be used for dynamic address allocation,
161 | # is available for hosts with matching --dhcp-host lines. Note that
162 | # dhcp-host declarations will be ignored unless there is a dhcp-range
163 | # of some type for the subnet in question.
164 | # In this case the netmask is implied (it comes from the network
165 | # configuration on the machine running dnsmasq) it is possible to give
166 | # an explicit netmask instead.
167 | #dhcp-range=192.168.0.0,static
168 |
169 | # Enable DHCPv6. Note that the prefix-length does not need to be specified
170 | # and defaults to 64 if missing/
171 | #dhcp-range=1234::2, 1234::500, 64, 12h
172 |
173 | # Do Router Advertisements, BUT NOT DHCP for this subnet.
174 | #dhcp-range=1234::, ra-only
175 |
176 | # Do Router Advertisements, BUT NOT DHCP for this subnet, also try and
177 | # add names to the DNS for the IPv6 address of SLAAC-configured dual-stack
178 | # hosts. Use the DHCPv4 lease to derive the name, network segment and
179 | # MAC address and assume that the host will also have an
180 | # IPv6 address calculated using the SLAAC alogrithm.
181 | #dhcp-range=1234::, ra-names
182 |
183 | # Do Router Advertisements, BUT NOT DHCP for this subnet.
184 | # Set the lifetime to 46 hours. (Note: minimum lifetime is 2 hours.)
185 | #dhcp-range=1234::, ra-only, 48h
186 |
187 | # Do DHCP and Router Advertisements for this subnet. Set the A bit in the RA
188 | # so that clients can use SLAAC addresses as well as DHCP ones.
189 | #dhcp-range=1234::2, 1234::500, slaac
190 |
191 | # Do Router Advertisements and stateless DHCP for this subnet. Clients will
192 | # not get addresses from DHCP, but they will get other configuration information.
193 | # They will use SLAAC for addresses.
194 | #dhcp-range=1234::, ra-stateless
195 |
196 | # Do stateless DHCP, SLAAC, and generate DNS names for SLAAC addresses
197 | # from DHCPv4 leases.
198 | #dhcp-range=1234::, ra-stateless, ra-names
199 |
200 | # Do router advertisements for all subnets where we're doing DHCPv6
201 | # Unless overriden by ra-stateless, ra-names, et al, the router
202 | # advertisements will have the M and O bits set, so that the clients
203 | # get addresses and configuration from DHCPv6, and the A bit reset, so the
204 | # clients don't use SLAAC addresses.
205 | #enable-ra
206 |
207 | # Supply parameters for specified hosts using DHCP. There are lots
208 | # of valid alternatives, so we will give examples of each. Note that
209 | # IP addresses DO NOT have to be in the range given above, they just
210 | # need to be on the same network. The order of the parameters in these
211 | # do not matter, it's permissible to give name, address and MAC in any
212 | # order.
213 |
214 | # Always allocate the host with Ethernet address 11:22:33:44:55:66
215 | # The IP address 192.168.0.60
216 | #dhcp-host=11:22:33:44:55:66,192.168.0.60
217 |
218 | # Always set the name of the host with hardware address
219 | # 11:22:33:44:55:66 to be "fred"
220 | #dhcp-host=11:22:33:44:55:66,fred
221 |
222 | # Always give the host with Ethernet address 11:22:33:44:55:66
223 | # the name fred and IP address 192.168.0.60 and lease time 45 minutes
224 | #dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m
225 |
226 | # Give a host with Ethernet address 11:22:33:44:55:66 or
227 | # 12:34:56:78:90:12 the IP address 192.168.0.60. Dnsmasq will assume
228 | # that these two Ethernet interfaces will never be in use at the same
229 | # time, and give the IP address to the second, even if it is already
230 | # in use by the first. Useful for laptops with wired and wireless
231 | # addresses.
232 | #dhcp-host=11:22:33:44:55:66,12:34:56:78:90:12,192.168.0.60
233 |
234 | # Give the machine which says its name is "bert" IP address
235 | # 192.168.0.70 and an infinite lease
236 | #dhcp-host=bert,192.168.0.70,infinite
237 |
238 | # Always give the host with client identifier 01:02:02:04
239 | # the IP address 192.168.0.60
240 | #dhcp-host=id:01:02:02:04,192.168.0.60
241 |
242 | # Always give the host with client identifier "marjorie"
243 | # the IP address 192.168.0.60
244 | #dhcp-host=id:marjorie,192.168.0.60
245 |
246 | # Enable the address given for "judge" in /etc/hosts
247 | # to be given to a machine presenting the name "judge" when
248 | # it asks for a DHCP lease.
249 | #dhcp-host=judge
250 |
251 | # Never offer DHCP service to a machine whose Ethernet
252 | # address is 11:22:33:44:55:66
253 | #dhcp-host=11:22:33:44:55:66,ignore
254 |
255 | # Ignore any client-id presented by the machine with Ethernet
256 | # address 11:22:33:44:55:66. This is useful to prevent a machine
257 | # being treated differently when running under different OS's or
258 | # between PXE boot and OS boot.
259 | #dhcp-host=11:22:33:44:55:66,id:*
260 |
261 | # Send extra options which are tagged as "red" to
262 | # the machine with Ethernet address 11:22:33:44:55:66
263 | #dhcp-host=11:22:33:44:55:66,set:red
264 |
265 | # Send extra options which are tagged as "red" to
266 | # any machine with Ethernet address starting 11:22:33:
267 | #dhcp-host=11:22:33:*:*:*,set:red
268 |
269 | # Give a fixed IPv6 address and name to client with
270 | # DUID 00:01:00:01:16:d2:83:fc:92:d4:19:e2:d8:b2
271 | # Note the MAC addresses CANNOT be used to identify DHCPv6 clients.
272 | # Note also the they [] around the IPv6 address are obilgatory.
273 | #dhcp-host=id:00:01:00:01:16:d2:83:fc:92:d4:19:e2:d8:b2, fred, [1234::5]
274 |
275 | # Ignore any clients which are not specified in dhcp-host lines
276 | # or /etc/ethers. Equivalent to ISC "deny unknown-clients".
277 | # This relies on the special "known" tag which is set when
278 | # a host is matched.
279 | #dhcp-ignore=tag:!known
280 |
281 | # Send extra options which are tagged as "red" to any machine whose
282 | # DHCP vendorclass string includes the substring "Linux"
283 | #dhcp-vendorclass=set:red,Linux
284 |
285 | # Send extra options which are tagged as "red" to any machine one
286 | # of whose DHCP userclass strings includes the substring "accounts"
287 | #dhcp-userclass=set:red,accounts
288 |
289 | # Send extra options which are tagged as "red" to any machine whose
290 | # MAC address matches the pattern.
291 | #dhcp-mac=set:red,00:60:8C:*:*:*
292 |
293 | # If this line is uncommented, dnsmasq will read /etc/ethers and act
294 | # on the ethernet-address/IP pairs found there just as if they had
295 | # been given as --dhcp-host options. Useful if you keep
296 | # MAC-address/host mappings there for other purposes.
297 | #read-ethers
298 |
299 | # Send options to hosts which ask for a DHCP lease.
300 | # See RFC 2132 for details of available options.
301 | # Common options can be given to dnsmasq by name:
302 | # run "dnsmasq --help dhcp" to get a list.
303 | # Note that all the common settings, such as netmask and
304 | # broadcast address, DNS server and default route, are given
305 | # sane defaults by dnsmasq. You very likely will not need
306 | # any dhcp-options. If you use Windows clients and Samba, there
307 | # are some options which are recommended, they are detailed at the
308 | # end of this section.
309 |
310 | # Override the default route supplied by dnsmasq, which assumes the
311 | # router is the same machine as the one running dnsmasq.
312 | #dhcp-option=3,1.2.3.4
313 |
314 | # Do the same thing, but using the option name
315 | #dhcp-option=option:router,1.2.3.4
316 |
317 | # Override the default route supplied by dnsmasq and send no default
318 | # route at all. Note that this only works for the options sent by
319 | # default (1, 3, 6, 12, 28) the same line will send a zero-length option
320 | # for all other option numbers.
321 | #dhcp-option=3
322 |
323 | # Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5
324 | #dhcp-option=option:ntp-server,192.168.0.4,10.10.0.5
325 |
326 | # Send DHCPv6 option. Note [] around IPv6 addresses.
327 | #dhcp-option=option6:dns-server,[1234::77],[1234::88]
328 |
329 | # Send DHCPv6 option for namservers as the machine running
330 | # dnsmasq and another.
331 | #dhcp-option=option6:dns-server,[::],[1234::88]
332 |
333 | # Ask client to poll for option changes every six hours. (RFC4242)
334 | #dhcp-option=option6:information-refresh-time,6h
335 |
336 | # Set the NTP time server address to be the same machine as
337 | # is running dnsmasq
338 | #dhcp-option=42,0.0.0.0
339 |
340 | # Set the NIS domain name to "welly"
341 | #dhcp-option=40,welly
342 |
343 | # Set the default time-to-live to 50
344 | #dhcp-option=23,50
345 |
346 | # Set the "all subnets are local" flag
347 | #dhcp-option=27,1
348 |
349 | # Send the etherboot magic flag and then etherboot options (a string).
350 | #dhcp-option=128,e4:45:74:68:00:00
351 | #dhcp-option=129,NIC=eepro100
352 |
353 | # Specify an option which will only be sent to the "red" network
354 | # (see dhcp-range for the declaration of the "red" network)
355 | # Note that the tag: part must precede the option: part.
356 | #dhcp-option = tag:red, option:ntp-server, 192.168.1.1
357 |
358 | # The following DHCP options set up dnsmasq in the same way as is specified
359 | # for the ISC dhcpcd in
360 | # http://www.samba.org/samba/ftp/docs/textdocs/DHCP-Server-Configuration.txt
361 | # adapted for a typical dnsmasq installation where the host running
362 | # dnsmasq is also the host running samba.
363 | # you may want to uncomment some or all of them if you use
364 | # Windows clients and Samba.
365 | #dhcp-option=19,0 # option ip-forwarding off
366 | #dhcp-option=44,0.0.0.0 # set netbios-over-TCP/IP nameserver(s) aka WINS server(s)
367 | #dhcp-option=45,0.0.0.0 # netbios datagram distribution server
368 | #dhcp-option=46,8 # netbios node type
369 |
370 | # Send an empty WPAD option. This may be REQUIRED to get windows 7 to behave.
371 | #dhcp-option=252,"\n"
372 |
373 | # Send RFC-3397 DNS domain search DHCP option. WARNING: Your DHCP client
374 | # probably doesn't support this......
375 | #dhcp-option=option:domain-search,eng.apple.com,marketing.apple.com
376 |
377 | # Send RFC-3442 classless static routes (note the netmask encoding)
378 | #dhcp-option=121,192.168.1.0/24,1.2.3.4,10.0.0.0/8,5.6.7.8
379 |
380 | # Send vendor-class specific options encapsulated in DHCP option 43.
381 | # The meaning of the options is defined by the vendor-class so
382 | # options are sent only when the client supplied vendor class
383 | # matches the class given here. (A substring match is OK, so "MSFT"
384 | # matches "MSFT" and "MSFT 5.0"). This example sets the
385 | # mtftp address to 0.0.0.0 for PXEClients.
386 | #dhcp-option=vendor:PXEClient,1,0.0.0.0
387 |
388 | # Send microsoft-specific option to tell windows to release the DHCP lease
389 | # when it shuts down. Note the "i" flag, to tell dnsmasq to send the
390 | # value as a four-byte integer - that's what microsoft wants. See
391 | # http://technet2.microsoft.com/WindowsServer/en/library/a70f1bb7-d2d4-49f0-96d6-4b7414ecfaae1033.mspx?mfr=true
392 | #dhcp-option=vendor:MSFT,2,1i
393 |
394 | # Send the Encapsulated-vendor-class ID needed by some configurations of
395 | # Etherboot to allow is to recognise the DHCP server.
396 | #dhcp-option=vendor:Etherboot,60,"Etherboot"
397 |
398 | # Send options to PXELinux. Note that we need to send the options even
399 | # though they don't appear in the parameter request list, so we need
400 | # to use dhcp-option-force here.
401 | # See http://syslinux.zytor.com/pxe.php#special for details.
402 | # Magic number - needed before anything else is recognised
403 | #dhcp-option-force=208,f1:00:74:7e
404 | # Configuration file name
405 | #dhcp-option-force=209,configs/common
406 | # Path prefix
407 | #dhcp-option-force=210,/tftpboot/pxelinux/files/
408 | # Reboot time. (Note 'i' to send 32-bit value)
409 | #dhcp-option-force=211,30i
410 |
411 | # Set the boot filename for netboot/PXE. You will only need
412 | # this is you want to boot machines over the network and you will need
413 | # a TFTP server; either dnsmasq's built in TFTP server or an
414 | # external one. (See below for how to enable the TFTP server.)
415 | #dhcp-boot=pxelinux.0
416 |
417 | # The same as above, but use custom tftp-server instead machine running dnsmasq
418 | #dhcp-boot=pxelinux,server.name,192.168.1.100
419 |
420 | # Boot for Etherboot gPXE. The idea is to send two different
421 | # filenames, the first loads gPXE, and the second tells gPXE what to
422 | # load. The dhcp-match sets the gpxe tag for requests from gPXE.
423 | #dhcp-match=set:gpxe,175 # gPXE sends a 175 option.
424 | #dhcp-boot=tag:!gpxe,undionly.kpxe
425 | #dhcp-boot=mybootimage
426 |
427 | # Encapsulated options for Etherboot gPXE. All the options are
428 | # encapsulated within option 175
429 | #dhcp-option=encap:175, 1, 5b # priority code
430 | #dhcp-option=encap:175, 176, 1b # no-proxydhcp
431 | #dhcp-option=encap:175, 177, string # bus-id
432 | #dhcp-option=encap:175, 189, 1b # BIOS drive code
433 | #dhcp-option=encap:175, 190, user # iSCSI username
434 | #dhcp-option=encap:175, 191, pass # iSCSI password
435 |
436 | # Test for the architecture of a netboot client. PXE clients are
437 | # supposed to send their architecture as option 93. (See RFC 4578)
438 | #dhcp-match=peecees, option:client-arch, 0 #x86-32
439 | #dhcp-match=itanics, option:client-arch, 2 #IA64
440 | #dhcp-match=hammers, option:client-arch, 6 #x86-64
441 | #dhcp-match=mactels, option:client-arch, 7 #EFI x86-64
442 |
443 | # Do real PXE, rather than just booting a single file, this is an
444 | # alternative to dhcp-boot.
445 | #pxe-prompt="What system shall I netboot?"
446 | # or with timeout before first available action is taken:
447 | #pxe-prompt="Press F8 for menu.", 60
448 |
449 | # Available boot services. for PXE.
450 | #pxe-service=x86PC, "Boot from local disk"
451 |
452 | # Loads /pxelinux.0 from dnsmasq TFTP server.
453 | #pxe-service=x86PC, "Install Linux", pxelinux
454 |
455 | # Loads /pxelinux.0 from TFTP server at 1.2.3.4.
456 | # Beware this fails on old PXE ROMS.
457 | #pxe-service=x86PC, "Install Linux", pxelinux, 1.2.3.4
458 |
459 | # Use bootserver on network, found my multicast or broadcast.
460 | #pxe-service=x86PC, "Install windows from RIS server", 1
461 |
462 | # Use bootserver at a known IP address.
463 | #pxe-service=x86PC, "Install windows from RIS server", 1, 1.2.3.4
464 |
465 | # If you have multicast-FTP available,
466 | # information for that can be passed in a similar way using options 1
467 | # to 5. See page 19 of
468 | # http://download.intel.com/design/archives/wfm/downloads/pxespec.pdf
469 |
470 |
471 | # Enable dnsmasq's built-in TFTP server
472 | #enable-tftp
473 |
474 | # Set the root directory for files available via FTP.
475 | #tftp-root=/var/ftpd
476 |
477 | # Make the TFTP server more secure: with this set, only files owned by
478 | # the user dnsmasq is running as will be send over the net.
479 | #tftp-secure
480 |
481 | # This option stops dnsmasq from negotiating a larger blocksize for TFTP
482 | # transfers. It will slow things down, but may rescue some broken TFTP
483 | # clients.
484 | #tftp-no-blocksize
485 |
486 | # Set the boot file name only when the "red" tag is set.
487 | #dhcp-boot=tag:red,pxelinux.red-net
488 |
489 | # An example of dhcp-boot with an external TFTP server: the name and IP
490 | # address of the server are given after the filename.
491 | # Can fail with old PXE ROMS. Overridden by --pxe-service.
492 | #dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.3
493 |
494 | # If there are multiple external tftp servers having a same name
495 | # (using /etc/hosts) then that name can be specified as the
496 | # tftp_servername (the third option to dhcp-boot) and in that
497 | # case dnsmasq resolves this name and returns the resultant IP
498 | # addresses in round robin fasion. This facility can be used to
499 | # load balance the tftp load among a set of servers.
500 | #dhcp-boot=/var/ftpd/pxelinux.0,boothost,tftp_server_name
501 |
502 | # Set the limit on DHCP leases, the default is 150
503 | #dhcp-lease-max=150
504 |
505 | # The DHCP server needs somewhere on disk to keep its lease database.
506 | # This defaults to a sane location, but if you want to change it, use
507 | # the line below.
508 | #dhcp-leasefile=/var/lib/misc/dnsmasq.leases
509 |
510 | # Set the DHCP server to authoritative mode. In this mode it will barge in
511 | # and take over the lease for any client which broadcasts on the network,
512 | # whether it has a record of the lease or not. This avoids long timeouts
513 | # when a machine wakes up on a new network. DO NOT enable this if there's
514 | # the slightest chance that you might end up accidentally configuring a DHCP
515 | # server for your campus/company accidentally. The ISC server uses
516 | # the same option, and this URL provides more information:
517 | # http://www.isc.org/files/auth.html
518 | #dhcp-authoritative
519 |
520 | # Run an executable when a DHCP lease is created or destroyed.
521 | # The arguments sent to the script are "add" or "del",
522 | # then the MAC address, the IP address and finally the hostname
523 | # if there is one.
524 | #dhcp-script=/bin/echo
525 |
526 | # Set the cachesize here.
527 | #cache-size=150
528 |
529 | # If you want to disable negative caching, uncomment this.
530 | #no-negcache
531 |
532 | # Normally responses which come from /etc/hosts and the DHCP lease
533 | # file have Time-To-Live set as zero, which conventionally means
534 | # do not cache further. If you are happy to trade lower load on the
535 | # server for potentially stale date, you can set a time-to-live (in
536 | # seconds) here.
537 | #local-ttl=
538 |
539 | # If you want dnsmasq to detect attempts by Verisign to send queries
540 | # to unregistered .com and .net hosts to its sitefinder service and
541 | # have dnsmasq instead return the correct NXDOMAIN response, uncomment
542 | # this line. You can add similar lines to do the same for other
543 | # registries which have implemented wildcard A records.
544 | #bogus-nxdomain=64.94.110.11
545 |
546 | # If you want to fix up DNS results from upstream servers, use the
547 | # alias option. This only works for IPv4.
548 | # This alias makes a result of 1.2.3.4 appear as 5.6.7.8
549 | #alias=1.2.3.4,5.6.7.8
550 | # and this maps 1.2.3.x to 5.6.7.x
551 | #alias=1.2.3.0,5.6.7.0,255.255.255.0
552 | # and this maps 192.168.0.10->192.168.0.40 to 10.0.0.10->10.0.0.40
553 | #alias=192.168.0.10-192.168.0.40,10.0.0.0,255.255.255.0
554 |
555 | # Change these lines if you want dnsmasq to serve MX records.
556 |
557 | # Return an MX record named "maildomain.com" with target
558 | # servermachine.com and preference 50
559 | #mx-host=maildomain.com,servermachine.com,50
560 |
561 | # Set the default target for MX records created using the localmx option.
562 | #mx-target=servermachine.com
563 |
564 | # Return an MX record pointing to the mx-target for all local
565 | # machines.
566 | #localmx
567 |
568 | # Return an MX record pointing to itself for all local machines.
569 | #selfmx
570 |
571 | # Change the following lines if you want dnsmasq to serve SRV
572 | # records. These are useful if you want to serve ldap requests for
573 | # Active Directory and other windows-originated DNS requests.
574 | # See RFC 2782.
575 | # You may add multiple srv-host lines.
576 | # The fields are ,,,,
577 | # If the domain part if missing from the name (so that is just has the
578 | # service and protocol sections) then the domain given by the domain=
579 | # config option is used. (Note that expand-hosts does not need to be
580 | # set for this to work.)
581 |
582 | # A SRV record sending LDAP for the example.com domain to
583 | # ldapserver.example.com port 389
584 | #srv-host=_ldap._tcp.example.com,ldapserver.example.com,389
585 |
586 | # A SRV record sending LDAP for the example.com domain to
587 | # ldapserver.example.com port 389 (using domain=)
588 | #domain=example.com
589 | #srv-host=_ldap._tcp,ldapserver.example.com,389
590 |
591 | # Two SRV records for LDAP, each with different priorities
592 | #srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
593 | #srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2
594 |
595 | # A SRV record indicating that there is no LDAP server for the domain
596 | # example.com
597 | #srv-host=_ldap._tcp.example.com
598 |
599 | # The following line shows how to make dnsmasq serve an arbitrary PTR
600 | # record. This is useful for DNS-SD. (Note that the
601 | # domain-name expansion done for SRV records _does_not
602 | # occur for PTR records.)
603 | #ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"
604 |
605 | # Change the following lines to enable dnsmasq to serve TXT records.
606 | # These are used for things like SPF and zeroconf. (Note that the
607 | # domain-name expansion done for SRV records _does_not
608 | # occur for TXT records.)
609 |
610 | #Example SPF.
611 | #txt-record=example.com,"v=spf1 a -all"
612 |
613 | #Example zeroconf
614 | #txt-record=_http._tcp.example.com,name=value,paper=A4
615 |
616 | # Provide an alias for a "local" DNS name. Note that this _only_ works
617 | # for targets which are names from DHCP or /etc/hosts. Give host
618 | # "bert" another name, bertrand
619 | #cname=bertand,bert
620 |
621 | # For debugging purposes, log each DNS query as it passes through
622 | # dnsmasq.
623 | #log-queries
624 |
625 | # Log lots of extra information about DHCP transactions.
626 | #log-dhcp
627 |
628 | # Include another lot of configuration options.
629 | #conf-file=/etc/dnsmasq.more.conf
630 | #conf-dir=/etc/dnsmasq.d
631 |
632 |
--------------------------------------------------------------------------------
/files/dvwa.j2:
--------------------------------------------------------------------------------
1 |
24 |
--------------------------------------------------------------------------------
/files/lighttpd.j2:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Lighttpd is up and running...
5 |
6 |
7 |
8 |
Lighttpd is running on {{ ansible_distribution }} {{ ansible_distribution_version }}.
9 |
Please replace this page as soon as possible with your content.
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/files/motd.j2:
--------------------------------------------------------------------------------
1 |
2 | This system is managed by Ansible.
3 | _ _ _ _ _
4 | / \ | |_ __ (_)_ __ ___ | | (_)_ __ _ ___ __
5 | / _ \ | | '_ \| | '_ \ / _ \ | | | | '_ \| | | \ \/ /
6 | / ___ \| | |_) | | | | | __/ | |___| | | | | |_| |> <
7 | /_/ \_\_| .__/|_|_| |_|\___| |_____|_|_| |_|\__,_/_/\_\
8 | |_|
9 |
10 | OS : {{ ansible_distribution }} {{ ansible_distribution_version }}
11 | Hostname : {{ ansible_hostname }}
12 | IP address : {{ ansible_eth0.ipv4.address }}
13 | System type : {{ ansible_system }}
14 | Kernel : {{ ansible_kernel }}
15 |
16 |
17 |
--------------------------------------------------------------------------------
/files/repositories.j2:
--------------------------------------------------------------------------------
1 | # This file is maintained by Ansible. Manual changes are possible but not
2 | # recommanded. If you still want to change the mirror, use 'setup-apkrepos'
3 | # to perform the task.
4 |
5 | http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/v{{ alpine_release }}/main
6 |
--------------------------------------------------------------------------------
/handlers/services.yml:
--------------------------------------------------------------------------------
1 | # This files contains service handlers for Alpine Linux.
2 | #
3 | # Copyright (c) 2013-2022 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | # Usage:
8 | # handlers:
9 | # - include: handlers/services.yml
10 |
11 | ---
12 | # Control handlers for sshd
13 | - name: start sshd
14 | command: /etc/init.d/sshd start
15 |
16 | - name: stop sshd
17 | command: /etc/init.d/sshd stop
18 |
19 | - name: restart sshd
20 | command: /etc/init.d/sshd restart
21 |
22 | # Control handlers for lighttpd
23 | - name: start lighttpd
24 | command: /etc/init.d/lighttpd start
25 |
26 | - name: stop lighttpd
27 | command: /etc/init.d/lighttpd stop
28 |
29 | - name: restart lighttpd
30 | command: /etc/init.d/lighttpd restart
31 |
32 | # Control handlers for mysql
33 | - name: start mysql
34 | command: /etc/init.d/mysql start
35 |
36 | - name: stop mysql
37 | command: /etc/init.d/mysql stop
38 |
39 | - name: restart mysql
40 | command: /etc/init.d/mysql restart
41 |
42 | # Control handlers for collectd
43 | - name: start collectd
44 | command: /etc/init.d/collectd start
45 |
46 | - name: stop collectd
47 | command: /etc/init.d/collectd stop
48 |
49 | - name: restart collectd
50 | command: /etc/init.d/collectd restart
51 |
52 | # Control handlers for dnsmasq
53 | - name: start dnsmasq
54 | command: /etc/init.d/dnsmasq start
55 |
56 | - name: stop dnsmasq
57 | command: /etc/init.d/dnsmasq stop
58 |
59 | - name: restart dnsmasq
60 | command: /etc/init.d/dnsmasq restart
61 |
--------------------------------------------------------------------------------
/handlers/system.yml:
--------------------------------------------------------------------------------
1 | # This files contains system handlers for Alpine Linux.
2 | #
3 | # Copyright (c) 2013-2022 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | # Usage:
8 | # handlers:
9 | # - include: files/system.yml
10 | #
11 | ---
12 | - name: reboot system
13 | command: /sbin/reboot
14 |
15 | - name: halt system
16 | command: /sbin/halt
17 |
--------------------------------------------------------------------------------
/maintenance.yml:
--------------------------------------------------------------------------------
1 | # This playbook contains example maintenance tasks which could be performed
2 | # on a running Alpine Linux system.
3 | #
4 | # Copyright (c) 2013-2024 Fabian Affolter
5 | #
6 | # All rights reserved. Licensed under CC BY 3.0
7 | #
8 | ---
9 | - hosts: all
10 | user: root
11 | tasks:
12 |
13 | # Package management tasks
14 | # Available tags:
15 | # update_cache
16 | # clean_chache
17 | # update
18 | # local_cache (needs --extra-vars "path=/var/cache/apk")
19 | # add_pkg (needs --extra-vars "add_pkg=Package name")
20 | # del_pkg (needs --extra-vars ""del_pkg=Package name")
21 | - include: tasks/pkg-management.yml
22 |
23 | handlers:
24 | - include: handlers/system.yml
25 |
--------------------------------------------------------------------------------
/maintenance/README.md:
--------------------------------------------------------------------------------
1 | # Maintenance
2 |
3 | The playbooks in this directory performs maintenance task, like updating
4 | packages, upgrading systems, cleaning systems, or what else is useful. No
5 | task is depending on other files.
6 |
7 | ## update.yml
8 | All installed packages are updated and the system will reboot after the package
9 | update task is over. In the current configuration it doesn't make sense to run
10 | this playbook every hour because of the system reboot.
11 | For additional details please refer to this [section](http://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Upgrade_a_Running_System) in the Alpine Linux wiki.
12 |
13 | ## clean-cache.yml
14 | The cache directory is storing all versions of a package. Over time the cache is filled
15 | because newer packages will replace older ones. This playbook is cleaning the cache.
16 |
17 | For additional details please refer to this [section](http://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Delete_old_packages) in the Alpine Linux wiki.
18 |
19 | ## lighttpd.yml
20 | The *lighttpd.yml* playbook installs the [lighttpd](http://www.lighttpd.net/)
21 | web server with [FastCGI](www.fastcgi.com/) support and PHP.
22 |
23 | ## linfo.yml
24 | [Linfo](http://linfo.sourceforge.net/) is a simple PHP application that
25 | displays information about the host it's running on. A running lighttpd server
26 | is needed. This means, run the **lighttpd.yml** first.
27 |
28 | ## phpsysinfo.yml
29 | [PhpSysInfo](http://rk4an.github.com/phpsysinfo/) displays various operating
30 | system details like CPU, memory, disk, and network usage. As well are SMART
31 | data, temperatures, and rpm of fans shown. Running the **lighttpd.yml** first
32 | is mandatory because a running lighttpd server is needed.
33 |
--------------------------------------------------------------------------------
/maintenance/clean-cache.yml:
--------------------------------------------------------------------------------
1 | # This playbook clean the package cache of Alpine Linux hosts.
2 | #
3 | # Copyright (c) 2013-2014 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - hosts: all
9 | user: root
10 |
11 | tasks:
12 | - name: clean package cache
13 | command: /sbin/apk cache clean
14 |
--------------------------------------------------------------------------------
/maintenance/lighttpd.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the lighttpd with FastCGI and PHP support.
2 | #
3 | # Copyright (c) 2013-2017 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - hosts: all
9 | user: root
10 |
11 | tasks:
12 |
13 | - name: install the lighttpd web server
14 | command: /sbin/apk add lighttpd
15 |
16 | - name: install php packages
17 | command: /sbin/apk add {{ item }}
18 | with_items:
19 | - php-common
20 | - php-iconv
21 | - php-json
22 | - php-gd
23 | - php-curl
24 | - php-xml
25 | - php-pgsql
26 | - php-imap
27 | - php-pdo
28 | - php-pdo_pgsql
29 | - php-soap
30 | - php-xmlrpc
31 | - php-posix
32 | - php-mcrypt
33 | - php-gettext
34 | - php-ldap
35 | - php-ctype
36 | - php-dom
37 |
38 | - name: enable fastcgi support in lighttpd.conf
39 | lineinfile: dest=/etc/lighttpd/lighttpd.conf
40 | regexp='^ include "mod_fastcgi.conf"'
41 | insertafter='^# include "mod_fastcgi.conf"'
42 | line=' include "mod_fastcgi.conf"'
43 | state=present
44 |
45 | - name: start the lighttpd service
46 | command: /etc/init.d/lighttpd start
47 |
48 | - name: add lighttpd to the default runlevel
49 | command: rc-update add lighttpd default
50 |
51 | - name: install a default index.html file
52 | template: src=../files/lighttpd.j2
53 | dest=/var/www/localhost/htdocs/index.html
54 | owner=lighttpd
55 | group=lighttpd
56 | mode=0644
57 |
--------------------------------------------------------------------------------
/maintenance/linfo.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the linfo (http://linfo.sourceforge.net/) php
2 | # application.
3 | #
4 | # Copyright (c) 2013-2015 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - hosts: all
10 | user: root
11 |
12 | vars:
13 | release_version: 1.9
14 |
15 | tasks:
16 | - name: create a directory to store the data
17 | file: path=/usr/share/webapps/
18 | owner=root
19 | group=root
20 | mode=0777
21 | state=directory
22 |
23 | - name: download the linfo source tarball
24 | get_url: url=http://sourceforge.net/projects/linfo/files/Linfo%20Stable%20Releases/linfo-{{ release_version }}.tar.gz
25 | dest=/usr/share/webapps/linfo-{{ release_version }}.tar.gz
26 | mode=0440
27 |
28 | - name: unpack the source tarball
29 | command: /bin/tar -xzf /usr/share/webapps/linfo-{{ release_version }}.tar.gz -C /usr/share/webapps/
30 |
31 | - name: rename the source directory
32 | command: /bin/mv /usr/share/webapps/linfo-{{ release_version }} /usr/share/webapps/linfo
33 |
34 | - name: delete the source tarball
35 | command: /bin/rm /usr/share/webapps/linfo-{{ release_version }}.tar.gz
36 |
37 | - name: copy the default config file
38 | command: /bin/cp /usr/share/webapps/linfo/sample.config.inc.php /usr/share/webapps/linfo/config.inc.php
39 |
40 | - name: set the permissions
41 | file: path=/usr/share/webapps/
42 | mode=0777
43 | state=directory
44 |
45 | - name: create a symlink to the webserver root
46 | file: src=/usr/share/webapps/linfo/
47 | dest=/var/www/localhost/htdocs/linfo
48 | owner=root
49 | group=root
50 | state=link
51 |
--------------------------------------------------------------------------------
/maintenance/phpsysinfo.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the PhpSysInfo (http://rk4an.github.com/phpsysinfo/)
2 | # php application.
3 | #
4 | # Copyright (c) 2013-2015 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - hosts: all
10 | user: root
11 |
12 | vars:
13 | release_version: 3.2.1
14 |
15 | tasks:
16 | - name: create the 'webapps' directory
17 | file: path=/usr/share/webapps/
18 | owner=root
19 | group=root
20 | mode=0777
21 | state=directory
22 |
23 | - name: download the phpsysinfo source tarball
24 | get_url: url=https://github.com/rk4an/phpsysinfo/archive/v{{ release_version }}.tar.gz
25 | dest=/usr/share/webapps/phpsysinfo-$release_version.tar.gz
26 | mode=0440
27 |
28 | - name: unpack the source tarball
29 | command: /bin/tar -xzf /usr/share/webapps/phpsysinfo-{{ release_version }}.tar.gz -C /usr/share/webapps/
30 |
31 | - name: rename the source directory
32 | command: /bin/mv /usr/share/webapps/phpsysinfo-{{ release_version }} /usr/share/webapps/phpsysinfo
33 |
34 | - name: delete the source tarball
35 | command: /bin/rm /usr/share/webapps/phpsysinfo-{{ release_version }}.tar.gz
36 |
37 | - name: copy the default config file
38 | command: /bin/cp /usr/share/webapps/phpsysinfo/phpsysinfo.ini.new /usr/share/webapps/phpsysinfo/phpsysinfo.ini
39 |
40 | - name: set the permissions
41 | file: path=/usr/share/webapps/
42 | mode=0777
43 | state=directory
44 |
45 | - name: create a symlink to the webserver root
46 | file: src=/usr/share/webapps/phpsysinfo/
47 | dest=/var/www/localhost/htdocs/phpsysinfo
48 | owner=root
49 | group=root
50 | state=link
51 |
--------------------------------------------------------------------------------
/maintenance/update.yml:
--------------------------------------------------------------------------------
1 | # This playbook updates all Alpine Linux hosts and initialize a reboot.
2 | #
3 | # Copyright (c) 2013-2022 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - hosts: all
9 | user: root
10 |
11 | tasks:
12 | - name: update all packages
13 | command: /sbin/apk upgrade -U -a
14 |
15 | - name: reboot system
16 | command: /sbin/reboot -d 5
17 |
--------------------------------------------------------------------------------
/setup.yml:
--------------------------------------------------------------------------------
1 | # This playbook contains example tasks to perform on a fresh Alpine Linux
2 | # installation.
3 | #
4 | # Copyright (c) 2013-2025 Fabian Affolter
5 | #
6 | # All rights reserved. Licensed under CC BY 3.0
7 | #
8 | # Usage: ansible-playbook setup.yml -f 10
9 |
10 | ---
11 | - hosts: all
12 | user: root
13 | vars_files:
14 | - variables/application-versions.yml
15 | - variables/sensitive.yml
16 |
17 | tasks:
18 | - include: tasks/apk-repositories.yml
19 | - include: tasks/motd.yml
20 |
21 | # Server tasks
22 | # - include: tasks/lighttpd.yml
23 | # - include: tasks/dovecot.yml
24 | # - include: tasks/collectd.yml
25 | # - include: tasks/dnsmasq.yml
26 | # - include: tasks/mysql.yml
27 |
28 | # Web application tasks
29 | # - include: tasks/linfo.yml
30 | # - include: tasks/bootstrap.yml
31 | # - include: tasks/phpsysinfo.yml
32 | # - include: tasks/mutillidae.yml
33 | # - include: tasks/php-shell-detector.yml
34 | # - include: tasks/dvwa.yml
35 | # - include: tasks/phpmyadmin.yml
36 | #
37 |
38 | handlers:
39 | - include: handlers/system.yml
40 |
--------------------------------------------------------------------------------
/tasks/apk-repositories.yml:
--------------------------------------------------------------------------------
1 | # This playbook copy a default repositories file.
2 | #
3 | # Copyright (c) 2013-2020 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - name: put a default repositories file in place
9 | template:
10 | src: files/repositories.j2
11 | dest: /etc/apk/repositories
12 | owner: root
13 | group: root
14 | mode: 0644
15 | backup: yes
16 |
17 |
--------------------------------------------------------------------------------
/tasks/bootstrap.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the bootstrap (http://twitter.github.com/bootstrap/)
2 | # javascript framework.
3 | #
4 | # Copyright (c) 2013-2020 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - name: download the bootstrap zip archive
10 | get_url:
11 | url: http://twitter.github.com/bootstrap/assets/bootstrap.zip
12 | dest: /usr/share/webapps/bootstrap.zip
13 | mode: 0440
14 |
15 | - name: unpack the archive
16 | command: /usr/bin/unzip -o /usr/share/webapps/bootstrap.zip -d /usr/share/webapps/
17 |
18 | - name: delete the archive
19 | file:
20 | path: /usr/share/webapps/bootstrap.zip
21 | state: absent
22 |
23 | - name: set the right permission
24 | file:
25 | path: /usr/share/webapps/
26 | mode: 0777
27 | state: directory
28 |
29 | - name: create a symlink to the webserver's root
30 | file:
31 | src: /usr/share/webapps/bootstrap/
32 | dest: /var/www/localhost/htdocs/bootstrap
33 | owner: root
34 | group: root
35 | state: link
36 |
37 | - name: install a default index.html file
38 | template:
39 | src: files/bootstrap.j2
40 | dest: /var/www/localhost/htdocs/index.html
41 | owner: root
42 | group: root
43 | mode: 0755
44 | backup: yes
45 |
--------------------------------------------------------------------------------
/tasks/cleanup.yml:
--------------------------------------------------------------------------------
1 | # This playbook remove all components which were needed for the setup.
2 | #
3 | # Copyright (c) 2013-2018 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - name: remove unzip package
9 | command: /sbin/apk del unzip
10 |
11 | - name: remove git
12 | command: /sbin/apk del git
13 |
--------------------------------------------------------------------------------
/tasks/dnsmasq.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the dnsmasq (http://www.thekelleys.org.uk/dnsmasq/doc.html)
2 | # DNS forwarder and DHCP server.
3 | #
4 | # Copyright (c) 2013-2020 Fabian Affolter
5 | #
6 | # All rights reserved. Licensed under CC BY 3.0
7 | #
8 | ---
9 | - name: install the dnsmasq server
10 | command: /sbin/apk add dnsmasq
11 |
12 | - name: install a default configuration file
13 | template:
14 | src: files/dnsmasq.j2
15 | dest: /etc/dnsmasq.conf
16 | owner: root
17 | group: root
18 | mode: 0755
19 | backup: yes
20 | notify:
21 | - start dnsmasq
22 |
23 | - name: add dnsmasq to the default runlevel
24 | command: rc-update add dnsmasq default
25 |
26 |
--------------------------------------------------------------------------------
/tasks/lighttpd.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the lighttpd with FastCGI and PHP.
2 | #
3 | # Copyright (c) 2013-2020 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - name: install the lighttpd web server
9 | command: /sbin/apk add lighttpd
10 |
11 | - name: install php packages
12 | command: /sbin/apk add $item
13 | with_items:
14 | - php-common
15 | - php-iconv
16 | - php-json
17 | - php-gd
18 | - php-curl
19 | - php-xml
20 | - php-pgsql
21 | - php-imap
22 | - php-pdo
23 | - php-pdo_pgsql
24 | - php-soap
25 | - php-xmlrpc
26 | - php-posix
27 | - php-mcrypt
28 | - php-gettext
29 | - php-ldap
30 | - php-ctype
31 | - php-dom
32 |
33 | - name: enable fastcgi support in lighttpd.conf
34 | lineinfile:
35 | dest: /etc/lighttpd/lighttpd.conf
36 | regexp: '^ include "mod_fastcgi.conf"'
37 | insertafter: '^# include "mod_fastcgi.conf"'
38 | line: ' include "mod_fastcgi.conf"'
39 | state: present
40 |
41 | # notify:
42 | # - start lighttpd
43 |
44 | - name: start lighttpd
45 | command: /etc/init.d/lighttpd start
46 |
47 | - name: add lighttpd to the default runlevel
48 | command: /sbin/rc-update add lighttpd default
49 |
50 | - name: install a default index.html file
51 | template:
52 | src: files/lighttpd.j2
53 | dest: /var/www/localhost/htdocs/index.html
54 | owner: lighttpd
55 | group: lighttpd
56 | mode: 0644
57 |
--------------------------------------------------------------------------------
/tasks/motd.yml:
--------------------------------------------------------------------------------
1 | # This playbook distribute a default motd file.
2 | #
3 | # Copyright (c) 2013-2020 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - name: put a default motd file in place
9 | template:
10 | src: files/motd.j2
11 | dest: /etc/motd
12 | owner: root
13 | group: root
14 | mode: 0644
15 | backup: yes
16 |
17 |
--------------------------------------------------------------------------------
/tasks/phpinfo.yml:
--------------------------------------------------------------------------------
1 | # This playbook install a simple file for displaying details about the PHP
2 | # installation.
3 | #
4 | # Copyright (c) 2013-2020 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - name: create the needed directory
10 | file:
11 | path: /usr/share/webapps/phpinfo
12 | owner: root
13 | group: root
14 | mode: 0755
15 | state: directory
16 |
17 | - name: create a new file with lineinfile
18 | lineinfile:
19 | dest: /usr/share/webapps/phpinfo/index.php
20 | regexp: '^'
21 | line: ''
22 | state: present
23 | create: True
24 |
25 | - name: add a multiline string to the file and delete the string from before
26 | lineinfile:
27 | dest: /usr/share/webapps/phpinfo/index.php
28 | regexp: '^'
29 | line: ''
30 | state: present
31 |
32 | - name: set the permissions
33 | file:
34 | path: /var/www/lighttpd/
35 | mode: 0777
36 | state: directory
37 |
38 | - name: create a symlink to the webserver root
39 | file:
40 | src: /usr/share/webapps/phpinfo/
41 | dest: /var/www/localhost/htdocs/phpinfo
42 | owner: root
43 | group: root
44 | state: link
45 |
46 |
--------------------------------------------------------------------------------
/tasks/pkg-management.yml:
--------------------------------------------------------------------------------
1 | # This playbook contains operations to perform package management tasks on
2 | # Alpine Linux hosts.
3 | #
4 | # Copyright (c) 2013-2020 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - name: update the package list
10 | command: /sbin/apk update
11 | tags: update_cache
12 |
13 | - name: update all packages
14 | command: /sbin/apk upgrade -U -a
15 | tags: update
16 | notify:
17 | - reboot system
18 |
19 | - name: enable local cache
20 | command: /sbin/setup-apkcache $path
21 | tags: local_cache
22 |
23 | - name: install a package
24 | command: /sbin/apk add $add_pkg
25 | tags: add_pkg
26 |
27 | - name: remove a package
28 | command: /sbin/apk del $del_pkg
29 | tags: del_pkg
30 |
31 | - name: clean package cache
32 | command: /sbin/apk cache clean
33 | tags: clean_chache
34 |
--------------------------------------------------------------------------------
/tasks/preparation.yml:
--------------------------------------------------------------------------------
1 | # This playbook install all needed components for the setup.
2 | #
3 | # Copyright (c) 2013-2020 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | # Archiver tools
9 | - name: install unzip packages
10 | command: /sbin/apk add unzip
11 |
12 | - name: for the git module git is needed
13 | command: /sbin/apk add git
14 |
15 | # Folder and files
16 | - name: create the 'webapps' directory
17 | file:
18 | path: /usr/share/webapps/
19 | owner: root
20 | group: root
21 | mode: 0777
22 | state: directory
23 |
24 |
--------------------------------------------------------------------------------
/tasks/security/b374k.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the b374k shell (http://code.google.com/p/b374k-shell/).
2 | #
3 | # Copyright (c) 2013 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - name: create the directory
9 | file: path=/usr/share/webapps/b374k
10 | state=directory
11 |
12 | - name: download the source
13 | get_url: url=http://b374k-shell.googlecode.com/files/b374k-2.2.php
14 | dest=/usr/share/webapps/b374k/b374k.php
15 | mode=0777
16 |
17 | - name: create a symlink to the webserver root
18 | file: src=/usr/share/webapps/b374k/
19 | dest=/var/www/localhost/htdocs/b374k
20 | owner=root
21 | group=root
22 | state=link
23 |
--------------------------------------------------------------------------------
/tasks/security/bwapp.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the SQLol SQL injection test-bed
2 | # application (https://github.com/SpiderLabs/SQLol).
3 | #
4 | # Copyright (c) 2013 Fabian Affolter
5 | #
6 | # All rights reserved. Licensed under CC BY 3.0
7 | #
8 | ---
9 | - name: downloads the archive
10 | get_url: url=http://downloads.sourceforge.net/project/bwapp/bWAPPv$bwapp_version/bWAPPv$bwapp_version.zip
11 | dest=/usr/share/webapps/bwapp-$bwapp_version.zip
12 | mode=0440
13 |
14 | - name: unpack the archive
15 | command: /usr/bin/unzip -o /usr/share/webapps/bwapp-$bwapp_version.zip -d /usr/share/webapps/
16 |
17 | - name: delete the archive
18 | command: /bin/rm /usr/share/webapps/bwapp-$bwapp_version.zip
19 |
20 | - name: rename the folder
21 | command: /bin/mv /usr/share/webapps/bWAPP /usr/share/webapps/bwapp
22 |
23 | - name: set the right permission
24 | file: path=/usr/share/webapps/
25 | mode=0777
26 | state=directory
27 |
28 | - name: set the default mysql password
29 | command: sed -i 's|$password = ""|$password = "$mysql_root_password"|g' /usr/share/webapps/bwapp/config.inc.php
30 |
31 | - name: create a symlink to the webserver root
32 | file: src=/usr/share/webapps/bwapp/
33 | dest=/var/www/localhost/htdocs/bwapp
34 | owner=root
35 | group=root
36 | state=link
37 |
--------------------------------------------------------------------------------
/tasks/security/dvwa.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the Damn Vulnerable Web Application (DVWA)
2 | # (http://www.dvwa.co.uk/).
3 | #
4 | # Copyright (c) 2013 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - name: downloads the archive
10 | get_url: url=http://dvwa.googlecode.com/files/DVWA-$dvwa_version.zip
11 | dest=/usr/share/webapps/dvwa-$dvwa_version.zip
12 | mode=0440
13 |
14 | - name: unpack the archive
15 | command: /usr/bin/unzip -o /usr/share/webapps/dvwa-$dvwa_version.zip -d /usr/share/webapps/
16 |
17 | - name: delete the archive
18 | command: /bin/rm /usr/share/webapps/dvwa-$dvwa_version.zip
19 |
20 | - name: set the permissions
21 | file: path=/usr/share/webapps/
22 | mode=0777
23 | state=directory
24 |
25 | - name: install a default configuration file
26 | template: src=files/dvwa.j2
27 | dest=/usr/share/webapps/dvwa/config/config.inc.php
28 | owner=root
29 | group=root
30 | mode=0755
31 | backup=yes
32 |
33 | - name: create a symlink to the webserver root
34 | file: src=/usr/share/webapps/dvwa/
35 | dest=/var/www/localhost/htdocs/dvwa
36 | owner=root
37 | group=root
38 | state=link
39 |
--------------------------------------------------------------------------------
/tasks/security/mutillidae.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the NOWASP (Mutillidae) web penetration test
2 | # application (http://sourceforge.net/projects/mutillidae/).
3 | #
4 | # Copyright (c) 2013 Fabian Affolter
5 | #
6 | # All rights reserved. Licensed under CC BY 3.0
7 | #
8 | ---
9 | - name: create the 'webapps' directory
10 | file: path=/usr/share/webapps/
11 | owner=root
12 | group=root
13 | mode=0777
14 | state=directory
15 |
16 | - name: downloads the archive
17 | get_url: url=http://sourceforge.net/projects/mutillidae/files/mutillidae-project/LATEST-mutillidae-$mutillidae_version.zip
18 | dest=/usr/share/webapps/mutillidae-$mutillidae_version.zip
19 | mode=0440
20 |
21 | - name: unpack the archive
22 | command: /usr/bin/unzip -o /usr/share/webapps/mutillidae-$mutillidae_version -d /usr/share/webapps/
23 |
24 | - name: delete the archive
25 | command: /bin/rm /usr/share/webapps/mutillidae-$mutillidae_version.zip
26 |
27 | - name: set the default mysql password
28 | command: sed -i 's|MySQLDatabasePassword = ""|MySQLDatabasePassword = "$default_mysql_password"|g' /usr/share/webapps/mutillidae/classes/MySQLHandler.php
29 |
30 | - name: set the right permission
31 | file: path=/usr/share/webapps/
32 | mode=0777
33 | state=directory
34 |
35 | - name: create a symlink to the webserver root
36 | file: src=/usr/share/webapps/mutillidae/
37 | dest=/var/www/localhost/htdocs/mutillidae
38 | owner=root
39 | group=root
40 | state=link
41 |
--------------------------------------------------------------------------------
/tasks/security/phpshell.yml:
--------------------------------------------------------------------------------
1 | # This playbook install phpshell (http://phpshell.sourceforge.net/).
2 | #
3 | # Copyright (c) 2013 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - name: download the source tarball
9 | get_url: url=http://prdownloads.sourceforge.net/phpshell/phpshell-$phpshell_version.tar.gz
10 | dest=/usr/share/webapps/phpshell-$phpshell_version.tar.gz
11 | mode=0440
12 |
13 | - name: unpack the source tarball
14 | command: /bin/tar -xzf /usr/share/webapps/phpshell-$phpshell_version.tar.gz -C /usr/share/webapps/
15 |
16 | - name: rename the source directory
17 | command: /bin/mv /usr/share/webapps/phpshell-$phpshell_version /usr/share/webapps/phpshell
18 |
19 | - name: delete the archive
20 | file: path=/usr/share/webapps/phpshell-$phpshell_version.tar.gz
21 | state=absent
22 |
23 | - name: set the permissions
24 | file: path=/usr/share/webapps/
25 | mode=0777
26 | state=directory
27 |
28 | - name: create a symlink to the webserver root
29 | file: src=/usr/share/webapps/phpshell/
30 | dest=/var/www/localhost/htdocs/phpshell
31 | owner=root
32 | group=root
33 | state=link
34 |
--------------------------------------------------------------------------------
/tasks/security/sqlol.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the SQLol SQL injection test-bed
2 | # application (https://github.com/SpiderLabs/SQLol).
3 | #
4 | # Copyright (c) 2013 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - name: checkout the source
10 | command: /usr/bin/git clone git://github.com/SpiderLabs/SQLol.git /usr/share/webapps/sqlol
11 |
12 | - name: set the default mysql password
13 | command: /bin/sed -i "s|$password = ''|$password = '$default_mysql_password'|g" /usr/share/webapps/sqlol/includes/database.config.php
14 |
15 | - name: set the right permission
16 | file: path=/usr/share/webapps/
17 | mode=0777
18 | state=directory
19 |
20 | - name: create a symlink to the webserver root
21 | file: src=/usr/share/webapps/sqlol/
22 | dest=/var/www/localhost/htdocs/sqlol
23 | owner=root
24 | group=root
25 | state=link
26 |
--------------------------------------------------------------------------------
/tasks/setup-devel.yml:
--------------------------------------------------------------------------------
1 | # This playbook setup a machine for building aports.
2 | #
3 | # Copyright (c) 2013-2020 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - name: install alpine-sdk package
9 | command: /sbin/apk add alpine-sdk
10 |
--------------------------------------------------------------------------------
/tasks/update.yml:
--------------------------------------------------------------------------------
1 | # This playbook updates all Alpine Linux hosts.
2 | #
3 | # Copyright (c) 2013-2020 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | - name: update all packages
9 | raw: /sbin/apk upgrade -U -a
10 |
11 | - name: reboot the system
12 | raw: /sbin/reboot -d 5
13 |
--------------------------------------------------------------------------------
/tasks/webapp/linfo.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the linfo (http://linfo.sourceforge.net/) php
2 | # application.
3 | #
4 | # Copyright (c) 2013 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - name: download the linfo source tarball
10 | get_url: url=http://sourceforge.net/projects/linfo/files/Linfo%20Stable%20Releases/linfo-$linfo_version.tar.gz
11 | dest=/usr/share/webapps/linfo-$linfo_version.tar.gz
12 | mode=0440
13 |
14 | - name: unpack the source tarball
15 | command: /bin/tar -xzf /usr/share/webapps/linfo-$linfo_version.tar.gz -C /usr/share/webapps/
16 |
17 | - name: rename the source directory
18 | command: /bin/mv /usr/share/webapps/linfo-$linfo_version /usr/share/webapps/linfo
19 |
20 | - name: delete the archive
21 | file: path=/usr/share/webapps/linfo-$linfo_version.tar.gz
22 | state=absent
23 |
24 | - name: copy the default config file
25 | command: /bin/cp /usr/share/webapps/linfo/sample.config.inc.php /usr/share/webapps/linfo/config.inc.php
26 |
27 | - name: set the permissions
28 | file: path=/usr/share/webapps/
29 | mode=0777
30 | state=directory
31 |
32 | - name: create a symlink to the webserver root
33 | file: src=/usr/share/webapps/linfo/
34 | dest=/var/www/localhost/htdocs/linfo
35 | owner=root
36 | group=root
37 | state=link
38 |
--------------------------------------------------------------------------------
/tasks/webapp/php-shell-detector.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the PHP Shell detector
2 | # (https://github.com/emposha/PHP-Shell-Detector).
3 | #
4 | # Copyright (c) 2013 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - name: create the 'webapps' directory
10 | file: path=/usr/share/webapps/
11 | owner=root
12 | group=root
13 | mode=0777
14 | state=directory
15 |
16 | - name: install the git package
17 | command: /sbin/apk add git
18 |
19 | - name: checkout from the php shell detector git repo
20 | git: repo=git://github.com/emposha/PHP-Shell-Detector.git
21 | dest=/usr/share/webapps/phpshell-detector
22 |
23 | - name: set the right permission
24 | file: path=/usr/share/webapps/
25 | mode=0777
26 | state=directory
27 |
28 | - name: create a symlink to the webserver root
29 | file: src=/usr/share/webapps/phpshell-detector/
30 | dest=/var/www/localhost/htdocs/phpshell-detector
31 | owner=root
32 | group=root
33 | state=link
34 |
35 | - name: remove the git package
36 | command: /sbin/apk del git
37 |
--------------------------------------------------------------------------------
/tasks/webapp/phpsysinfo.yml:
--------------------------------------------------------------------------------
1 | # This playbook install the PhpSysInfo (http://rk4an.github.com/phpsysinfo/)
2 | # php application.
3 | #
4 | # Copyright (c) 2013 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | - name: download the phpsysinfo source tarball
10 | get_url: url=https://github.com/rk4an/phpsysinfo/archive/v$phpsysinfo_version.tar.gz
11 | dest=/usr/share/webapps/phpsysinfo-$phpsysinfo_version.tar.gz
12 | mode=0440
13 |
14 | - name: unpack the source tarball
15 | command: /bin/tar -xzf /usr/share/webapps/phpsysinfo-$phpsysinfo_version.tar.gz -C /usr/share/webapps/
16 |
17 | - name: rename the source directory
18 | command: /bin/mv /usr/share/webapps/phpsysinfo-$phpsysinfo_version /usr/share/webapps/phpsysinfo
19 |
20 | - name: delete the archive
21 | file: path=/usr/share/webapps/phpsysinfo-$phpsysinfo_version.tar.gz
22 | state=absent
23 |
24 | - name: copy the default config file
25 | command: /bin/cp /usr/share/webapps/phpsysinfo/phpsysinfo.ini.new /usr/share/webapps/phpsysinfo/phpsysinfo.ini
26 |
27 | - name: set the permissions
28 | file: path=/usr/share/webapps/
29 | mode=0777
30 | state=directory
31 |
32 | - name: create a symlink to the webserver root
33 | file: src=/usr/share/webapps/phpsysinfo/
34 | dest=/var/www/localhost/htdocs/phpsysinfo
35 | owner=root
36 | group=root
37 | state=link
38 |
--------------------------------------------------------------------------------
/variables/alpine-versions.yml:
--------------------------------------------------------------------------------
1 | # This variables files contains the version numbers of Alpine Linux.
2 | #
3 | # Copyright (c) 2013-2025 Fabian Affolter
4 | #
5 | # Licensed under CC BY 3.0. All rights reserved.
6 | #
7 | ---
8 | # Alpine Linux - https://alpinelinux.org/
9 | alpine_release: 3.21.1
10 | #
11 | alpine_previous: 3.20.4
12 | alpine_current: 3.21.0
13 | alpine_next: 3.21.2
14 |
--------------------------------------------------------------------------------
/variables/application-versions.yml:
--------------------------------------------------------------------------------
1 | # This variables files contains the version numbers of the software packages
2 | # which will be installed without the package management tool.
3 | #
4 | # Copyright (c) 2013-2025 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | ---
9 | # linfo - http://linfo.sourceforge.net/
10 | linfo_version: 2.0.3
11 |
12 | # piwik - http://piwik.org/
13 | piwik_version: 2.16.5
14 |
15 | # phpsysinfo - https://github.com/phpsysinfo/phpsysinfo
16 | phpsysinfo_version: 3.4.3
17 |
18 | # phpshell - http://phpshell.sourceforge.net/
19 | phpshell_version: 2.4
20 |
21 | # NOWASP (Mutillidae) - https://github.com/webpwnized/mutillidae
22 | mutillidae_version: 2.6.43
23 |
24 | # Damn Vulnerable Web App (DVWA) - http://www.dvwa.co.uk/
25 | dvwa_version: 1.9
26 |
27 | # phpMyAdmin - http://www.phpmyadmin.net/
28 | phpmyadmin_version: 5.2.1
29 |
30 | # bWAPP - http://sourceforge.net/projects/bwapp/
31 | bwapp_version: 2.0
32 |
--------------------------------------------------------------------------------
/variables/sensitive.yml:
--------------------------------------------------------------------------------
1 | # This variables file contains the default password for system, user, and
2 | # database accounts.
3 | #
4 | # Copyright (c) 2013-2017 Fabian Affolter
5 | #
6 | # Licensed under CC BY 3.0. All rights reserved.
7 | #
8 | # For the Ansible examples:
9 | # python -c 'import crypt; print crypt.crypt("Password", "$1$SomeSalt$")'
10 | ---
11 | # Server root password
12 | server_root_password: password
13 |
14 | # Client root password
15 | client_root_password: password
16 |
17 | # Default user password
18 | default_user_password: password
19 |
20 | # Default mysql root password
21 | mysql_root_password: password
22 |
--------------------------------------------------------------------------------