Skip to content

Commit

Permalink
Update github action provision.yml
Browse files Browse the repository at this point in the history
Update vagrant.yaml ansible tags during provisioning to verify
all existing roles even if those are not specified in the tags list.
  • Loading branch information
theodore86 committed Jul 16, 2023
1 parent 43607d3 commit d0a06bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
run: |
vagrant --version
- name: 'Setup yq processor'
uses: 'chrisdickinson/setup-yq@v1.0.1'
with:
yq-version: 'v4.28.1'

- name: 'Update vagrant.yaml ansible tags with all the existing in playbook'
run: |
tags=$(yq ".[].roles[].tags" provisioners/ansible/playbook.yml)
tags=$("'${tags//[[:space:]]/"','"}'")
tags="[${tags}]"
yq '.":host".":provisioners".":ansible".":options".":tags" = env(tags)' vagrant.yaml
- name: "Installation of Vagrant plugins"
run: |
vagrant up
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Based on Ubuntu `jammy/22.04` box from: [HashiCorp's Vagrant Cloud](https://app.
- openjdk
- groovy
- maven
- allure

### Ruby

Expand Down

0 comments on commit d0a06bb

Please sign in to comment.