- can't start the webserver w/o the dirs it is using present
- make the iptables pkg check right
This commit is contained in:
parent
c1e53e2318
commit
eccb2fa263
2 changed files with 20 additions and 19 deletions
|
@ -43,23 +43,6 @@
|
||||||
- screen
|
- screen
|
||||||
|
|
||||||
|
|
||||||
# setup webserver
|
|
||||||
- name: add config for copr-repo path
|
|
||||||
action: copy src=$files/copr/lighttpd/lighttpd.conf dest=/etc/lighttpd/lighttpd.conf owner=root group=root mode=0644
|
|
||||||
notify:
|
|
||||||
- restart lighttpd
|
|
||||||
|
|
||||||
# mime default to text/plain and enable dirlisting for indexes
|
|
||||||
- name: update lighttpd configs
|
|
||||||
action: copy src=$files/copr/lighttpd/$item dest=/etc/lighttpd/conf.d/$item owner=root group=root mode=0644
|
|
||||||
with_items:
|
|
||||||
- dirlisting.conf
|
|
||||||
- mime.conf
|
|
||||||
notify:
|
|
||||||
- restart lighttpd
|
|
||||||
|
|
||||||
- name: start webserver
|
|
||||||
action: service state=running enabled=yes name=lighttpd
|
|
||||||
|
|
||||||
- name: make copr account
|
- name: make copr account
|
||||||
action: user name=copr state=present system=yes home=/srv/copr-work/copr
|
action: user name=copr state=present system=yes home=/srv/copr-work/copr
|
||||||
|
@ -100,6 +83,24 @@
|
||||||
- /srv/copr-work
|
- /srv/copr-work
|
||||||
- /srv/copr-work/copr
|
- /srv/copr-work/copr
|
||||||
|
|
||||||
|
# setup webserver
|
||||||
|
- name: add config for copr-repo path
|
||||||
|
action: copy src=$files/copr/lighttpd/lighttpd.conf dest=/etc/lighttpd/lighttpd.conf owner=root group=root mode=0644
|
||||||
|
notify:
|
||||||
|
- restart lighttpd
|
||||||
|
|
||||||
|
# mime default to text/plain and enable dirlisting for indexes
|
||||||
|
- name: update lighttpd configs
|
||||||
|
action: copy src=$files/copr/lighttpd/$item dest=/etc/lighttpd/conf.d/$item owner=root group=root mode=0644
|
||||||
|
with_items:
|
||||||
|
- dirlisting.conf
|
||||||
|
- mime.conf
|
||||||
|
notify:
|
||||||
|
- restart lighttpd
|
||||||
|
|
||||||
|
- name: start webserver
|
||||||
|
action: service state=running enabled=yes name=lighttpd
|
||||||
|
|
||||||
# setup dirs for the ansible execution off of provisioning
|
# setup dirs for the ansible execution off of provisioning
|
||||||
- name: dirs from provision
|
- name: dirs from provision
|
||||||
action: file state=directory path=/srv/copr-work/provision/$item owner=copr group=copr
|
action: file state=directory path=/srv/copr-work/provision/$item owner=copr group=copr
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
|
|
||||||
- name: install iptables if not installed
|
- name: install iptables if not installed
|
||||||
yum: name=iptables state=present
|
yum: name=iptables state=present
|
||||||
when: is_rhel == "1"
|
when: is_rhel == 1
|
||||||
tags:
|
tags:
|
||||||
- iptables
|
- iptables
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install iptables-services if not installed
|
- name: install iptables-services if not installed
|
||||||
yum: name=iptables-services state=present
|
yum: name=iptables-services state=present
|
||||||
when: is_fedora == "1"
|
when: is_fedora == 1
|
||||||
tags:
|
tags:
|
||||||
- iptables
|
- iptables
|
||||||
- packages
|
- packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue