From 483b28c4ba3646df18b56591a535458e074b7ebe Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Wed, 13 Dec 2023 13:09:43 -0500 Subject: [PATCH] Moved back to single file workflow --- .gitea/workflows/ansible-centos9.yml | 30 ------- .gitea/workflows/ansible-debian11.yml | 30 ------- .gitea/workflows/ansible-debian12.yml | 30 ------- .gitea/workflows/ansible-fedora39.yml | 30 ------- .gitea/workflows/ansible-test.yml | 119 ++++++++++++++++++++++++++ 5 files changed, 119 insertions(+), 120 deletions(-) delete mode 100644 .gitea/workflows/ansible-centos9.yml delete mode 100644 .gitea/workflows/ansible-debian11.yml delete mode 100644 .gitea/workflows/ansible-debian12.yml delete mode 100644 .gitea/workflows/ansible-fedora39.yml create mode 100644 .gitea/workflows/ansible-test.yml diff --git a/.gitea/workflows/ansible-centos9.yml b/.gitea/workflows/ansible-centos9.yml deleted file mode 100644 index 1411bfc..0000000 --- a/.gitea/workflows/ansible-centos9.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Ansible Test -run-name: ${{ gitea.actor }} is tesing Ansible with Gitea Actions -on: [push] - -jobs: - CentOS9-Ansible-Pipeline: - runs-on: ansible-dev-centos9 - steps: - - name: Clone repository - uses: actions/checkout@v3 - - - 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 --exclude .gitea - - - name: Run Ansible-Playbook - run: | - ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml diff --git a/.gitea/workflows/ansible-debian11.yml b/.gitea/workflows/ansible-debian11.yml deleted file mode 100644 index 2566b74..0000000 --- a/.gitea/workflows/ansible-debian11.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Ansible Test -run-name: ${{ gitea.actor }} is tesing Ansible with Gitea Actions -on: [push] - -jobs: - Debian11-Ansible-Pipeline: - runs-on: ansible-dev-debian11 - steps: - - name: Clone repository - uses: actions/checkout@v3 - - - 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 --exclude .gitea - - - name: Run Ansible-Playbook - run: | - ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml diff --git a/.gitea/workflows/ansible-debian12.yml b/.gitea/workflows/ansible-debian12.yml deleted file mode 100644 index cb6d93f..0000000 --- a/.gitea/workflows/ansible-debian12.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Ansible Test -run-name: ${{ gitea.actor }} is tesing Ansible with Gitea Actions -on: [push] - -jobs: - Debian12-Ansible-Pipeline: - runs-on: ansible-dev-debian12 - steps: - - name: Clone repository - uses: actions/checkout@v3 - - - 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 --exclude .gitea - - - name: Run Ansible-Playbook - run: | - ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml diff --git a/.gitea/workflows/ansible-fedora39.yml b/.gitea/workflows/ansible-fedora39.yml deleted file mode 100644 index 8d7a341..0000000 --- a/.gitea/workflows/ansible-fedora39.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Ansible Test -run-name: ${{ gitea.actor }} is tesing Ansible with Gitea Actions -on: [push] - -jobs: - Fedora39-Ansible-Pipeline: - runs-on: ansible-dev-fedora39 - steps: - - name: Clone repository - uses: actions/checkout@v3 - - - 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 --exclude .gitea - - - name: Run Ansible-Playbook - run: | - ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml diff --git a/.gitea/workflows/ansible-test.yml b/.gitea/workflows/ansible-test.yml new file mode 100644 index 0000000..389304b --- /dev/null +++ b/.gitea/workflows/ansible-test.yml @@ -0,0 +1,119 @@ +name: Ansible Test +run-name: ${{ gitea.actor }} is tesing Ansible with Gitea Actions +on: [push] + +jobs: + # CENTOS 9 + ######################### + CentOS9-Ansible-Pipeline: + runs-on: ansible-dev-centos9 + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - 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 --exclude .gitea + + - name: Run Ansible-Playbook + run: | + ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml + + + # FEDORA 39 + ######################### + Fedora39-Ansible-Pipeline: + runs-on: ansible-dev-fedora39 + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - 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 --exclude .gitea + + - name: Run Ansible-Playbook + run: | + ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml + + + # DEBIAN 11 + ######################### + Debian11-Ansible-Pipeline: + runs-on: ansible-dev-debian11 + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - 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 --exclude .gitea + + - name: Run Ansible-Playbook + run: | + ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml + + + # DEBIAN 12 + ######################### + Debian12-Ansible-Pipeline: + runs-on: ansible-dev-debian12 + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - 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 --exclude .gitea + + - name: Run Ansible-Playbook + run: | + ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml