diff --git a/.gitea/workflows/ansible-centos9.yml b/.gitea/workflows/ansible-centos9.yml index dc48d82..0330c93 100644 --- a/.gitea/workflows/ansible-centos9.yml +++ b/.gitea/workflows/ansible-centos9.yml @@ -13,15 +13,26 @@ jobs: run: | pwd - - name: Change to ${{ gitea.workspace }} - run: | - cd ${{ gitea.workspace }} - - - name: Just a simple ls - run: | - ls - - name: List files in the repository run: | ls ${{ gitea.workspace }} + - name: Ansible Version + run: | + ansible --version + + - name: Ansible-lint Version + run: | + ansible-lint --version + + - name: Ansible Galaxy Requirements Install + run: | + ansible-galaxy collection install -r collections/requirements.yml + + - name: Run Ansible-Lint + run: | + ansible-lint --offline --exclude collections/ansible_collections + + - name: Run Ansible-Playbook + run: | + ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml diff --git a/.gitea/workflows/demo.yml b/.gitea/workflows/demo.yml deleted file mode 100644 index 26bf880..0000000 --- a/.gitea/workflows/demo.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] - -jobs: - Explore-Gitea-Actions: - runs-on: ansible-dev-centos9 - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}."