name: Install Ansible using Pip on: workflow_call: jobs: build: runs-on: ubuntu-latest env: RUNNER_TOOL_CACHE: /toolcache ANSIBLE_VERSION: "8.7.0" steps: - name: Copy SSH Key run: | mkdir ~/.ssh/ echo "Host *" > ~/.ssh/config echo " StrictHostKeyChecking no" >> ~/.ssh/config echo '${{secrets.SSH_PRIVATE_KEY}}' > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - uses: actions/checkout@v3 with: submodules: recursive - name: "Cache python packages" uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-${{ env.ANSIBLE_VERSION }} - name: Install Ansible run: | apt update -y apt install python3-pip -y python3 -m pip install ansible==${{ env.ANSIBLE_VERSION }} #- name: Install Ansible Galaxy requirements # run: | # ansible-galaxy install -r requirements.yaml