name: Ansible Code Pipeline run-name: ${{ gitea.actor }} is running Ansible Code Pipeline on: push: branches: - development jobs: Ansible-Development-Pipeline: runs-on: ansible-dev-centos9 steps: - name: Clone repository uses: actions/checkout@v3 - name: Ansible Environment Verify run: | echo "BUILD HOST: $(cat /etc/hostname)" && echo echo "BUILD USER: $(whoami)" && echo echo "PWD: $(pwd)" && echo lscpu && echo . ./.ci.env && echo env && echo git log -1 && echo ansible --version && echo ansible-lint --version --offline && echo - name: Install Ansible Galaxy Dependencies run: | ansible-galaxy install -r requirements.yml - name: Run Ansible-Lint run: | . ./.ci.env ansible-lint --offline $ANSIBLE_LINT_EXCLUSION - name: Run Ansible-Playbook run: | . ./.ci.env ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK