fix: use own ansible run command

This commit is contained in:
Ditmar Visser
2025-06-11 17:28:36 +00:00
parent 3d5e0dd787
commit d0b049e26f
3 changed files with 6 additions and 26 deletions

View File

@@ -78,14 +78,9 @@ jobs:
apt install python3-pip -y apt install python3-pip -y
python3 -m pip install ansible python3 -m pip install ansible
- name: Run playbook - name: Run Ansible Playbook
uses: dawidd6/action-ansible-playbook@v2 env:
with: ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
# Required, playbook filepath ANSIBLE_HOST_KEY_CHECKING: False
playbook: ../ansible/main.yml run: |
# Optional, directory where playbooks live ansible-playbook -i ../ansible/inventory.ini ../ansible/main.yml
# directory: ../ansible/
# Optional, galaxy requirements filepath
# requirements: requirements.yaml
options: |
--inventory ../ansible/inventory.ini

View File

@@ -3,23 +3,9 @@
become: true become: true
gather_facts: false gather_facts: false
roles: roles:
# - geerlingguy.pip
- docker - docker
vars:
pip_install_use: apt
# 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
tasks: tasks:
# - name: Manually gather facts after 'six' is installed
# ansible.builtin.setup:
- name: Delete existing hello world container - name: Delete existing hello world container
community.docker.docker_container: community.docker.docker_container:
name: "les-06" name: "les-06"

View File

@@ -1 +0,0 @@
- src: geerlingguy.pip