diff --git a/.gitea/workflows/host.yml b/.gitea/workflows/host.yml index 199235e..ccbae72 100644 --- a/.gitea/workflows/host.yml +++ b/.gitea/workflows/host.yml @@ -20,13 +20,16 @@ jobs: container: image: homesrv/git-runner steps: + - name: Checkout code uses: actions/checkout@v2 - - name: ls - shell: bash - run: | - ls ${{gitea.workspace}} -lah + - name: Run Ansible Playbook + env: + #ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }} + ANSIBLE_HOST_KEY_CHECKING: False + run: | + ansible-playbook {{gitea.workspace}}/ansible/site.yml --private-key xxxx -u xxxx # - name: Install Ansible @@ -45,9 +48,3 @@ jobs: # ansible-playbook ansible/site.yml --private-key xxxx -u xxxx -# - name: Run Ansible Playboo -# env: -# ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }} -# ANSIBLE_HOST_KEY_CHECKING: False -# run: | -# ansible-playbook ansible/site.yml --private-key xxxx -u xxxx \ No newline at end of file