summaryrefslogtreecommitdiff
path: root/baserock_trove/image-config.yml
blob: 32795e28500d67e8b32b682cbf559fd7feb4c38f (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
# System configuration for Baserock database server.
#
# This Ansible playbook expects to be run on a Fedora 21 Cloud image.
---
- hosts: database-mariadb
  gather_facts: False
  sudo: True
  tasks:
  - name: enable persistant journal
    shell: mkdir /var/log/journal
    args:
      creates: /var/log/journal

  - name: install lvm2 tools
    yum: name=lvm2 state=latest

  - name: install MariaDB
    yum: name={{ item }} state=latest
    with_items:
        - mariadb
        - mariadb-server
        - MySQL-python

  - name: install libselinux-python, so Ansible can control selinux
    yum: name=libselinux-python state=latest

  - name: disable SELinux on subsequent boots
    selinux: state=disabled

  - name: disable SELinux on current boot
    command: setenforce 0