# System configuration for Baserock OStree cache server. # # Tested against Fedora 26 base image. --- - hosts: ostree gather_facts: false become: yes become_user: root 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: creates: /var/log/journal - name: ensure system up to date dnf: name=* state=latest - name: install lvm2 tools dnf: name=lvm2 state=latest - name: lighttpd installed dnf: name=lighttpd state=latest - name: ostree installed dnf: name=ostree state=latest # We only need BuildStream for the bst-artifact-receive hook, but it's # easiest to install all the deps - name: buildstream dep - bubblewrap dnf: name=bubblewrap state=latest - name: buildstream dep - git dnf: name=git state=latest - name: buildstream dep - python3-gobject dnf: name=python3-gobject state=latest - name: buildstream dep - python3-pip dnf: name=python3-pip state=latest - name: buildstream sources git: dest=/home/fedora/buildstream repo=https://gitlab.com/buildstream/buildstream version=32667b24b801f9b51da026b08e89f7fc55d8ac65 become_user: fedora - name: buildstream installed command: /usr/bin/pip3 install . args: chdir: /home/fedora/buildstream creates: /usr/bin/bst-artifact-receive - name: disable SELinux on subsequent boots selinux: state=disabled - name: disable SELinux on current boot command: setenforce 0