Skip to content

Commit

Permalink
ansible: Install python3-docker from apt on ubuntu
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Bretelle <[email protected]>
  • Loading branch information
chantra committed Aug 21, 2024
1 parent c820a22 commit 8f323a0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ansible/roles/runner/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# Used by ansible modules later
- name: Install docker pip
- name: Install docker pip on Amazon Linux
become: yes
ansible.builtin.pip:
name:
Expand All @@ -10,6 +10,15 @@
- docker
extra_args: --user
executable: pip3
when: ansible_distribution == 'Amazon'

- name: Install python3-docker on Ubuntu
become: yes
ansible.builtin.apt:
state: present
name: python3-docker
update_cache: yes
when: ansible_os_family == 'Debian'

- name: Create runner directory
become: yes
Expand Down

0 comments on commit 8f323a0

Please sign in to comment.