From 0530eddc7989feecb923d513e2169e487531f825 Mon Sep 17 00:00:00 2001 From: jack kweyunga <75433841+jackkweyunga@users.noreply.github.com> Date: Wed, 7 Dec 2022 06:18:18 +0300 Subject: [PATCH] Delete test.yml --- .github/workflows/test.yml | 48 -------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 18778fb..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: test Configure watchtower - -on: - workflow_dispatch: - -jobs: - ansible: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Add SSH Keys - run: | - cat << EOF > devops-key - ${{ secrets.SSH_DEVOPS_KEY_PRIVATE }} - EOF - - - name: Add pub SSH Keys - run: | - sudo mkdir -p /root/.ssh - sudo cat << EOF > /root/.ssh/authorized_keys - ${{ secrets.SSH_DEVOPS_KEY_PUBLIC }} - EOF - - - name: Update devops private key permissions - run: | - chmod 400 devops-key - - name: Install Ansible - run: | - pip install ansible - - - name: Adding or Override Ansible Config File - run: | - cat << EOF > ./ansible.cfg - [defaults] - ansible_python_interpreter='/usr/bin/python3' - deprecation_warnings=False - inventory=./inventory.ini - remote_user="root" - host_key_checking=False - private_key_file = ./devops-key - retries=2 - EOF - - - name: Run main playbook - run: | - ANSIBLE_CONFIG=ansible.cfg ansible-playbook main.yml