Skip to content

Commit

Permalink
test connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mtarking committed Apr 11, 2024
1 parent 2d830ea commit a1136b6
Showing 1 changed file with 45 additions and 42 deletions.
87 changes: 45 additions & 42 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit a1136b6

Please sign in to comment.