Slide 16
Slide 16 text
.gitlab-ci.yml
Ansible Night Tokyo 2020 #ansiblejp 16
image: docker:latest
...(略)...
molecule:
stage: test
script:
- molecule test
awx:
stage: sync
script:
- 'curl -X POST -H "Authorization: Bearer $AWX_TOKEN" -H "Content-Type: application/json“
http:///api/v2/projects//update/’
only:
- master
事前に AWX のトークンを取得して GitLab に登録が必要
curl -s -u : -X POST http:///api/v2/tokens/ | jq -r .token
Molecule クリア & master ブランチ
の場合のみ API 実行
Molecule 用