# Configuration for Baserock webserver system image. # # This expects to be run on a Fedora 26 cloud image. --- - hosts: webserver gather_facts: false become: yes become_method: sudo tasks: # see: https://fedoramagazine.org/getting-ansible-working-fedora-23/ - name: install python2 and required deps for ansible modules raw: dnf install -y python2 python2-dnf libselinux-python - name: enable persistant journal shell: mkdir /var/log/journal args: creates: /var/log/journal - name: ensure system up to date dnf: name=* state=latest - name: Cherokee webserver package dnf: name=cherokee state=latest - name: Cherokee configuration copy: src=etc/cherokee/cherokee.conf dest=/etc/cherokee/ - name: install lvm2 tools dnf: name=lvm2 state=latest - name: disable SELinux on subsequent boots selinux: state=disabled - name: disable SELinux on current boot command: setenforce 0