diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-10-20 15:21:08 +0100 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2017-10-23 11:11:10 +0000 |
commit | bc5a99a4ee180a9ff4446055bf0311af64c2bf9d (patch) | |
tree | 25bba7467d826ac88b6a678b451710e5de209f7e /baserock_webserver/image-config.yml | |
parent | 783240ce14579394859096b92269ea73cb449252 (diff) | |
download | infrastructure-bc5a99a4ee180a9ff4446055bf0311af64c2bf9d.tar.gz |
baserock_webserver: Update after redeployment
It now only serves download.baserock.org; the docs are hosted on GitLab
pages.
It will also serve paste, IRC logging and IRC bots soon!
Diffstat (limited to 'baserock_webserver/image-config.yml')
-rw-r--r-- | baserock_webserver/image-config.yml | 21 |
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 |