summaryrefslogtreecommitdiff
path: root/baserock_webserver/image-config.yml
blob: 4668c035602be0936da04bc6b6aba6fe435441ec (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
# 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: 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