blob: 9ce3e9bfec1be3d3cece331ccbc1467a2660fc9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Configuration for Baserock webserver system image.
#
# This expects to be run on a Fedora 26 cloud image.
---
- hosts: webserver
become: yes
become_method: sudo
tasks:
- name: ensure system up to date
apt:
upgrade: yes
update_cache: yes
- name: Install nginx package
apt:
pkg:
- nginx
- libnginx-mod-http-fancyindex
- python3-pip
- python2-minimal
update_cache: yes
- name: Download get-pip.py
get_url:
url: https://bootstrap.pypa.io/pip/2.7/get-pip.py
dest: /opt/get-pip.py
become: yes
- name: Install pip2
command: python2 /opt/get-pip.py
args:
creates: /usr/local/bin/pip2
become: yes
- name: install lvm2 tools
apt:
name: lvm2
|