service: name=httpd enabled=no
when: LAZY == 0
+- name: create logs directory
+ file: path=/vagrant/logs state=directory owner=vagrant group=apache mode=770
+
- name: ensure bugzilla.log has right permissions
file: path=/vagrant/logs/bugzilla.log state=touch owner=vagrant group=apache mode=0660
$answer{'NO_PAUSE'} = 1;
$answer{'size_limit'} = 750000;
$answer{'bugzilla_version'} = '1';
+$answer{'canonical_urlbase'} = "http://{{WEB_HOSTNAME}}/";
$answer{'create_htaccess'} = '1';
$answer{'db_check'} = 1;
$answer{'db_driver'} = 'mysql';
- name: copy re.pl
copy: src=re.pl dest=/usr/local/bin/re.pl mode=0755
-- name: copy start_morbo
+- name: fix start_morbo perms
+ file: path=/vagrant/scripts/start_morbo mode=0755
+
+- name: link start_morbo
file: path=/usr/local/bin/start_morbo src=/vagrant/scripts/start_morbo state=link force=true
- name: copy use-nytprof
+- name: fix jobqueue perms
+ file:
+ path: /vagrant/jobqueue.pl
+ mode: 0750
+
- name: install job queue
command: /vagrant/jobqueue.pl install chdir=/vagrant creates=/etc/init.d/bugzilla-queue
BUGZILLA=/vagrant
USER=vagrant
-- name: fix jobqueue perms
- file:
- path: /vagrant/jobqueue.pl
- mode: 0750
-
- name: enable jobqueue
service: name=bugzilla-queue enabled=yes
- name: restart jobqueue
- service: name=bugzilla-queue state=restarted
+ command: service bugzilla-queue restart
- python2-ndg_httpsclient
- name: link sphinx
- command: ln -s /usr/bin/sphinx-1.0-{{ item }} /usr/bin/sphinx-{{ item }} creates=/usr/bin/sphinx-{{ item }}
+ file: src=/usr/bin/sphinx-1.0-{{ item }} dest=/usr/bin/sphinx-{{ item }} state=link force=true
with_items:
- autogen
- build
shell: |-
mysqladmin -u root create bugs_bmo
mysql -u root -e 'GRANT ALL ON bugs_bmo.* TO bugs@"{{WEB_IP}}" IDENTIFIED BY "bugs"'
- when: bugs_bmo|failed
+ when: bugs_bmo is failed
- hosts: web
become: true