--- # Configuration for the anitya webapp - name: clean yum metadata command: yum clean all tags: - packages - anitya_frontend - name: install needed packages yum: pkg={{ item }} state=installed with_items: - anitya - python-psycopg2 - python-memcached - libsemanage-python - httpd tags: - packages - anitya_frontend - name: Install all the configuration file of anitya template: src={{ item.file }} dest={{ item.location }}/{{ item.file }} owner=apache group=apache mode=0600 with_items: - { file: anitya.cfg, location: /etc/anitya } - { file: anitya.conf, location: /etc/httpd/conf.d } - { file: anitya.wsgi, location: /var/www/, dest: anitya.wsgi } tags: - config - anitya_frontend notify: - restart apache - name: set sebooleans so anitya can talk to the db action: seboolean name={{ item }} state=true persistent=true with_items: - httpd_can_network_connect_db - httpd_can_network_connect tags: - anitya_frontend