blob: 29c1ba5fea68633547ad3bf2f3bcf7aeb127bd91 (
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
|
# 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
|