- can't start the webserver w/o the dirs it is using present

- make the  iptables pkg check right
This commit is contained in:
Seth Vidal 2013-06-22 04:11:16 +00:00
parent c1e53e2318
commit eccb2fa263
2 changed files with 20 additions and 19 deletions

View file

@ -43,23 +43,6 @@
- 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
action: user name=copr state=present system=yes home=/srv/copr-work/copr
@ -100,6 +83,24 @@
- /srv/copr-work
- /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
- name: dirs from provision
action: file state=directory path=/srv/copr-work/provision/$item owner=copr group=copr

View file

@ -3,14 +3,14 @@
- name: install iptables if not installed
yum: name=iptables state=present
when: is_rhel == "1"
when: is_rhel == 1
tags:
- iptables
- packages
- name: install iptables-services if not installed
yum: name=iptables-services state=present
when: is_fedora == "1"
when: is_fedora == 1
tags:
- iptables
- packages