35 lines
720 B
YAML
35 lines
720 B
YAML
- name: ensure rsync is installed
|
|
package:
|
|
name=rsync
|
|
state=present
|
|
tags:
|
|
- install
|
|
|
|
- name: ensure wheel storage directory exists
|
|
file:
|
|
path: '{{ wheelhost_store_dir }}'
|
|
owner: root
|
|
group: root
|
|
mode: ug=rwx,g=rx
|
|
state: directory
|
|
|
|
- name: ensure jenkins can write to the wheel storage directory
|
|
acl:
|
|
path: '{{ wheelhost_store_dir }}'
|
|
etype: user
|
|
entity: jenkins
|
|
permissions: rwx
|
|
default: '{{ item == "default" }}'
|
|
state: present
|
|
with_items:
|
|
- default
|
|
- current
|
|
|
|
- name: ensure apache is configured to serve wheel directory
|
|
template:
|
|
src: wheels.httpd.conf.j2
|
|
dest: /etc/httpd/conf.d/wheels.conf
|
|
mode: u=rw,go=r
|
|
notify:
|
|
- reload httpd
|