# 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