summaryrefslogtreecommitdiffstats
path: root/vagrant_support/checksetup.yml
blob: 455986148f33122448bdceef9153be88c09b79c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- name: bmo checksetup script
  template:
    src: bmo-checksetup.j2
    dest: /usr/local/bin/bmo-checksetup
    mode: 0755
  when: LAZY == 0

- name: bmo generate data script
  template:
    src: bmo-generate-data.j2
    dest: /usr/local/bin/bmo-generate-data
    mode: 0755
  when: LAZY == 0

- name: bmo checksetup answers
  template:
    src: checksetup_answers.j2
    dest: /home/vagrant/checksetup_answers.txt
    owner: vagrant
    group: vagrant
    mode: 0644
  when: LAZY == 0

- name: fix owner of /vagrant/template_cache
  file: path=/vagrant/template_cache state=directory owner=vagrant group=apache recurse=yes

- name: fix owner of /data
  file: path=/data state=directory owner=vagrant group=apache recurse=yes

- name: run checksetup
  become: false
  shell: sg apache -c '/usr/local/bin/bmo-checksetup --no-templates'

- name: generate data
  become: false
  shell: sg apache -c '/usr/local/bin/bmo-generate-data'