Skip to content

Update inventory_ci.yml #38

Update inventory_ci.yml

Update inventory_ci.yml #38

---
name: Ansible Builder # feel free to pick your own name
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
# - name: Add cloud and galaxy tokens
# run: echo -e "${{ secrets.galaxy_token }}" >> ansible.cfg
- name: Install ansible and builder
run: pip3 install ansible-core ansible-builder
- name: Install Collections
run: ansible-galaxy collection install -f -r collections/requirements.yml
- name: Docker login
run: docker login -u="${{ vars.quay_username }}+github_action" -p="${{ secrets.quay_token }}" quay.io
- name: Run Ansible Playbook
run: ansible-playbook playbooks/build_ee.yml -i inventory_ci.yml -l dev -e "ee_registry_username=${{ vars.quay_username }}+github_action" -e "ee_registry_password=${{ secrets.quay_token }}" -e "ah_token=something" -e "ee_pull_collections_from_hub=false" --connection=local -e "ee_registry_dest=quay.io/${{ vars.quay_username }}/config_as_code_ee" -vvv
env:
ANSIBLE_HOST_KEY_CHECKING: False
...