summaryrefslogtreecommitdiff
path: root/baserock_webserver/image-config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'baserock_webserver/image-config.yml')
-rw-r--r--baserock_webserver/image-config.yml21
1 files changed, 16 insertions, 5 deletions
diff --git a/baserock_webserver/image-config.yml b/baserock_webserver/image-config.yml
index 1244faac..29c1ba5f 100644
--- a/baserock_webserver/image-config.yml
+++ b/baserock_webserver/image-config.yml
@@ -1,11 +1,16 @@
# Configuration for Baserock webserver system image.
#
-# This expects to be run on a Fedora 22 cloud image.
+# This expects to be run on a Fedora 26 cloud image.
---
- hosts: webserver
gather_facts: false
- sudo: yes
+ 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:
@@ -14,11 +19,17 @@
- name: ensure system up to date
dnf: name=* state=latest
- - name: SELinux configuration (setting it to 'permissive' mode)
- copy: src=etc/selinux/config dest=/etc/selinux/
-
- 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