diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2021-08-18 12:30:45 +0200 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2021-08-18 12:30:45 +0200 |
commit | 45f4cbaa123b18d5c6caa442221dd1c46d475517 (patch) | |
tree | 7f01649e78fff35f905cf8cc263a9ebcc00d50db | |
parent | feb6d2cad414ed9946720237dbce85edad90c3b5 (diff) | |
download | infrastructure-45f4cbaa123b18d5c6caa442221dd1c46d475517.tar.gz |
baserock_frontend/image-config.yml to ubuntu
-rw-r--r-- | baserock_frontend/image-config.yml | 33 |
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 |