summaryrefslogtreecommitdiff
path: root/baserock_frontend/image-config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'baserock_frontend/image-config.yml')
-rw-r--r--baserock_frontend/image-config.yml33
1 files changed, 8 insertions, 25 deletions
diff --git a/baserock_frontend/image-config.yml b/baserock_frontend/image-config.yml
index 08a9b64a..a8ee88d2 100644
--- a/baserock_frontend/image-config.yml
+++ b/baserock_frontend/image-config.yml
@@ -1,34 +1,17 @@
# System configuration for Baserock HAProxy instance.
---
- hosts: frontend-haproxy
- gather_facts: false
- sudo: yes
+ become: yes
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
-
- - name: enable persistant journal
- shell: mkdir /var/log/journal
- args:
- creates: /var/log/journal
-
- name: ensure system up to date
- dnf: name=* state=latest
+ apt:
+ upgrade: yes
+ update_cache: yes
- name: HAProxy installed
- dnf: name=haproxy state=latest
+ apt:
+ name: haproxy
- name: netcat installed
- dnf: name=nc state=latest
-
- # Yes, SELinux prevents HAProxy from working. In this case I think it's
- # because we ask it to listen on port 29418 for Gerrit's SSH connections.
- - name: install libselinux-python, so Ansible can control selinux
- dnf: name=libselinux-python state=latest
-
- - name: disable SELinux on subsequent boots
- selinux: state=disabled
-
- - name: disable SELinux on current boot
- command: setenforce 0
+ apt:
+ name: netcat