Commit 8f21a0da authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[refactor] specific runners can be shared

I discovered that CI runners could be manually activated for multiple
projects. It means I don't need to add a config section for each runner,
and can instead have a global one.
parent 3192d8fc
......@@ -4,5 +4,5 @@
- vars/ci-tokens.yaml
roles:
- common
- { role: ci-runner, become: yes }
- { role: aml, ci: true, install: false}
- { role: ci-runner, become: yes }
- name: add ci configuration
blockinfile:
dest: /etc/gitlab-runner/config.toml
block: "{{ lookup('template', 'config.gitlab.etc.j2') }}"
marker: "# {mark} ANSIBLE MANAGED BLOCK FOR aml"
- name: add aml CI dependencies
package:
name: "{{ item }}"
state: present
with_items:
- valgrind
[[runners]]
name = "CHI/AUTO/aml"
url = "https://xgitlab.cels.anl.gov/"
token = "{{ aml_ci_token }}"
executor = "shell"
[runners.cache]
concurrent = 1
check_interval = 0
[[runners]]
name = "CHI/AUTO"
url = "https://xgitlab.cels.anl.gov/"
token = "{{ chi_ci_token }}"
executor = "shell"
[runners.cache]
$ANSIBLE_VAULT;1.1;AES256
39616266613961346337313335393565343662326439326265663631316266363235653661323466
3365656134326137343030363161363735663364333939360a393034386438323862333663633439
37363763393963663866326166623837303032363665316131646361396338343334663938343430
6561613939396438620a373234633238393735646334386539393962643930613830366563316263
64323834386537663134336266386237316261626264323561333965333066623531613336613734
36643361363564626333613132313063373636323935343165333936386631613565313764386330
306166333231373532343265386266383861
32336339333064346365613964663834306539303335323031313464303466663838376466346165
3562666138376238633935653239383464653538643134620a646337616566396661343733663733
37626439333962663662383330363937343966633036383465653532333431613238393062653330
3863393233373237390a373938366537616332343837336639663939646364666533363136383066
30376231396535376664616636333361306163636164373839383933656164313261346432393631
38623163656234343531343863626137653133386362323265636236613637373764353133653936
643236396435666334616335303238336465
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment