From a1136b6f4cc773854bdc8bd30af9739a36b6358c Mon Sep 17 00:00:00 2001 From: Matt Tarkington Date: Thu, 11 Apr 2024 06:53:03 -0400 Subject: [PATCH] test connection --- .github/workflows/main.yml | 87 ++++++++++++++++++++------------------ 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 429a3aa2..f9ddb3b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -105,62 +105,65 @@ jobs: ansible: [2.16.5] python: ['3.10'] steps: - - uses: actions/checkout@v4 + # - uses: actions/checkout@v4 - - name: mkdir for Example Repo - run: mkdir -p /home/runner/work/ansible-dc-vxlan/ansible-dc-vxlan/ansible-dc-vxlan-example + # - name: mkdir for Example Repo + # run: mkdir -p /home/runner/work/ansible-dc-vxlan/ansible-dc-vxlan/ansible-dc-vxlan-example - # - name: Checkout pwd - # run: pwd + # # - name: Checkout pwd + # # run: pwd - # - name: Checkout dir - # run: ls -altnr + # # - name: Checkout dir + # # run: ls -altnr - # - name: secret test - # run: echo ${{ secrets.NDFC_IP }} + # # - name: secret test + # # run: echo ${{ secrets.NDFC_IP }} - # - name: var test - # run: echo ${{ vars.NDFC_IP_VAR }} + # # - name: var test + # # run: echo ${{ vars.NDFC_IP_VAR }} - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' + # - name: Set up Python + # uses: actions/setup-python@v4 + # with: + # python-version: '3.10' - - name: Build a nac-dc-vxlan collection tarball - run: ansible-galaxy collection build - - - name: Checkout Example Repo - uses: actions/checkout@v4 - with: - repository: netascode/ansible-dc-vxlan-example - ref: example_data - token: ${{ secrets.MTARKING_GH_PAT }} - path: /home/runner/work/ansible-dc-vxlan/ansible-dc-vxlan/ansible-dc-vxlan-example - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r ansible-dc-vxlan-example/requirements.txt + # - name: Build a nac-dc-vxlan collection tarball + # run: ansible-galaxy collection build - - name: Install the collection tarball - run: ansible-galaxy collection install cisco-nac_dc_vxlan-0.1.0.tar.gz + # - name: Checkout Example Repo + # uses: actions/checkout@v4 + # with: + # repository: netascode/ansible-dc-vxlan-example + # ref: example_data + # token: ${{ secrets.MTARKING_GH_PAT }} + # path: /home/runner/work/ansible-dc-vxlan/ansible-dc-vxlan/ansible-dc-vxlan-example + + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # pip install -r ansible-dc-vxlan-example/requirements.txt + + # - name: Install the collection tarball + # run: ansible-galaxy collection install cisco-nac_dc_vxlan-0.1.0.tar.gz - - name: Install supporting collections - run: ansible-galaxy collection install -r ansible-dc-vxlan-example/requirements.yml + # - name: Install supporting collections + # run: ansible-galaxy collection install -r ansible-dc-vxlan-example/requirements.yml - # - name: Checkout pwd - # run: pwd + # # - name: Checkout pwd + # # run: pwd - # - name: Checkout dir - # run: ls -altnr + # # - name: Checkout dir + # # run: ls -altnr - # - name: Checkout Example dir - # run: ls -altnr /home/runner/work/ansible-dc-vxlan/ansible-dc-vxlan/ansible-dc-vxlan-example + # # - name: Checkout Example dir + # # run: ls -altnr /home/runner/work/ansible-dc-vxlan/ansible-dc-vxlan/ansible-dc-vxlan-example - - name: Check Ansible Collection List - run: ansible-galaxy collection list + # - name: Check Ansible Collection List + # run: ansible-galaxy collection list + - name: Check my IP + run: curl ifconfig.me + - name: Test Connection to NDFC env: NDFC_HOST: ${{ secrets.NDFC_HOST }}