SF initial configurator | a26c41e | 2022-10-06 13:33:13 +0300 | [diff] [blame] | 1 | # This file is managed by ansible, do not edit directly |
| 2 | --- |
| 3 | - hosts: all |
| 4 | tasks: |
| 5 | - block: |
| 6 | - include_role: name=fetch-output |
| 7 | when: |
| 8 | - "ansible_connection != 'kubectl'" |
| 9 | - ansible_user_dir is defined |
| 10 | - block: |
| 11 | - include_role: name=fetch-output-openshift |
| 12 | when: |
| 13 | - "ansible_connection == 'kubectl'" |
| 14 | - ansible_user_dir is defined |
| 15 | - import_role: name=merge-output-to-logs |
| 16 | when: ansible_user_dir is defined |
| 17 | |
| 18 | - hosts: localhost |
| 19 | roles: |
| 20 | - role: add-fileserver |
| 21 | fileserver: "{{ site_sflogs }}" |
| 22 | - role: generate-zuul-manifest |
| 23 | - role: ara-report |
| 24 | # This depends-on https://review.openstack.org/577675 |
| 25 | ara_report_run: True |
| 26 | ara_report_type: database |
| 27 | ara_report_path: "{{ zuul.executor.log_root }}/ara-report" |
| 28 | |
| 29 | - hosts: "spfactory.storpool.com" |
| 30 | gather_facts: false |
| 31 | tasks: |
| 32 | # Use a block because play vars doesn't take precedence on roles vars |
| 33 | - block: |
| 34 | - import_role: name=upload-logs |
| 35 | - import_role: name=buildset-artifacts-location |
| 36 | vars: |
| 37 | zuul_log_compress: true |
| 38 | zuul_log_url: "https://spfactory.storpool.com/logs" |
| 39 | zuul_logserver_root: "{{ site_sflogs.path }}" |
| 40 | |