diff --git a/.gitea/workflows/provision_configure.yaml b/.gitea/workflows/provision_configure.yaml index 2715b98..273bebe 100644 --- a/.gitea/workflows/provision_configure.yaml +++ b/.gitea/workflows/provision_configure.yaml @@ -77,15 +77,15 @@ jobs: apt update -y apt install python3-pip -y python3 -m pip install ansible - python3 -m pip install ansible-lint - - name: Install Ansible Roles - run: | - ansible-galaxy install -r ../ansible/requirements.yml - - - name: Run Ansible Playbook - env: - ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }} - ANSIBLE_HOST_KEY_CHECKING: False - run: | - ansible-playbook -i ../ansible/inventory.ini ../ansible/main.yml + - name: Run playbook + uses: dawidd6/action-ansible-playbook@v2 + with: + # Required, playbook filepath + playbook: ../ansible/main.yml + # Optional, directory where playbooks live + directory: ../ansible/ + # Optional, galaxy requirements filepath + # requirements: requirements.yaml + options: | + --inventory ../ansible/inventory.ini diff --git a/ansible/main.yml b/ansible/main.yml index 66657f5..6f502d6 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -10,15 +10,15 @@ # pip_install_packages: # - name: six - pre_tasks: - - name: Ensure python3 and pip are available - ansible.builtin.raw: | - sudo apt update && sudo apt install -y python3 python3-pip python3-six - changed_when: false + # pre_tasks: + # - name: Ensure python3 and pip are available + # ansible.builtin.raw: | + # sudo apt update && sudo apt install -y python3 python3-pip python3-six + # changed_when: false tasks: - - name: Manually gather facts after 'six' is installed - ansible.builtin.setup: + # - name: Manually gather facts after 'six' is installed + # ansible.builtin.setup: - name: Delete existing hello world container community.docker.docker_container: