|
3 | 3 | - vars.yaml
|
4 | 4 | - docker-vars.yaml
|
5 | 5 | - s3-vars.yaml
|
| 6 | + - ssl-vars.yaml |
| 7 | + - qos-vars.yaml |
6 | 8 |
|
7 | 9 | tasks:
|
8 | 10 | - name: Create stage directories
|
|
13 | 15 | - conf
|
14 | 16 | - barista
|
15 | 17 | - httpd-confs
|
16 |
| - |
17 |
| - - name: install configs from templates directory |
18 |
| - template: |
19 |
| - src: '{{ item.file }}' |
20 |
| - dest: '{{ stage_dir }}/{{ item.dir }}' |
21 |
| - with_items: |
22 |
| - - { file: 'httpd.conf', dir: 'httpd-confs' } |
| 18 | + - credentials |
23 | 19 |
|
24 | 20 | - name: Check if repo is staged
|
25 | 21 | stat:
|
|
53 | 49 | - { file: 'httpd-vhosts-prod-noctua.conf', dir: 'httpd-confs' }
|
54 | 50 | - { file: 'github.yaml', dir: 'barista' }
|
55 | 51 | - { file: 'startup.yaml', dir: 'conf' }
|
| 52 | + |
| 53 | + - name: install ssl configs from templates directory |
| 54 | + template: |
| 55 | + src: '{{ item.file }}' |
| 56 | + dest: '{{ stage_dir }}/{{ item.dir }}' |
| 57 | + with_items: |
| 58 | + - { file: 'httpd-vhosts-prod-barista-ssl.conf', dir: 'httpd-confs' } |
| 59 | + - { file: 'httpd-vhosts-prod-noctua-ssl.conf', dir: 'httpd-confs' } |
| 60 | + when: USE_SSL | bool |
| 61 | + |
| 62 | + - name: install qos config from templates directory |
| 63 | + template: |
| 64 | + src: qos.conf |
| 65 | + dest: '{{ stage_dir }}/qos.conf' |
| 66 | + when: USE_QOS | bool |
| 67 | + |
56 | 68 | - name: copy s3cfg
|
57 | 69 | copy:
|
58 | 70 | src: "{{ S3_CRED_FILE }}"
|
59 |
| - dest: "{{ stage_dir }}/s3cfg" |
| 71 | + dest: "{{ stage_dir }}/credentials/s3cfg" |
| 72 | + |
| 73 | + - name: copy s3cfg |
| 74 | + copy: |
| 75 | + src: "{{ S3_SSL_CRED_FILE }}" |
| 76 | + dest: "{{ stage_dir }}/credentials/ssl-s3cfg" |
| 77 | + |
| 78 | + - name: copy noop qos.conf |
| 79 | + copy: |
| 80 | + src: "files/qos-noop.conf" |
| 81 | + dest: '{{ stage_dir }}/qos.conf' |
| 82 | + when: not USE_QOS | bool |
| 83 | + |
60 | 84 | - name: copy robots.txt
|
61 | 85 | copy:
|
62 | 86 | src: "files/robots.txt"
|
63 |
| - dest: "{{ stage_dir }}/httpd-confs/robots.txt" |
| 87 | + dest: "{{ stage_dir }}/robots.txt" |
64 | 88 | - name: copy blazegraph.jnl
|
65 | 89 | copy:
|
66 | 90 | src: "{{ BLAZEGRAPH_JOURNAL }}"
|
|
0 commit comments