Skip to content

Commit e03ec00

Browse files
committed
ci: use preinstalled ansible on self-hosted deploy jobs
1 parent a741966 commit e03ec00

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ansible-deploy-bonus.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ jobs:
6969
- name: Checkout repository
7070
uses: actions/checkout@v4
7171

72-
- name: Install Ansible tooling
72+
- name: Use preinstalled Ansible tooling
7373
run: |
74-
python3 --version
75-
python3 -m pip install --user --upgrade pip
76-
python3 -m pip install --user ansible docker
77-
echo "$(python3 -m site --user-base)/bin" >> "$GITHUB_PATH"
74+
command -v ansible
75+
command -v ansible-playbook
76+
command -v ansible-galaxy
77+
ansible --version
7878
7979
- name: Install required Ansible collections
8080
run: ansible-galaxy collection install -r ansible/collections/requirements.yml

.github/workflows/ansible-deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ jobs:
6969
- name: Checkout repository
7070
uses: actions/checkout@v4
7171

72-
- name: Install Ansible tooling
72+
- name: Use preinstalled Ansible tooling
7373
run: |
74-
python3 --version
75-
python3 -m pip install --user --upgrade pip
76-
python3 -m pip install --user ansible docker
77-
echo "$(python3 -m site --user-base)/bin" >> "$GITHUB_PATH"
74+
command -v ansible
75+
command -v ansible-playbook
76+
command -v ansible-galaxy
77+
ansible --version
7878
7979
- name: Install required Ansible collections
8080
run: ansible-galaxy collection install -r ansible/collections/requirements.yml

0 commit comments

Comments
 (0)