xoxys.python3/tasks/setup.yml
Robert Kaussow 8a2ac1c4d5
All checks were successful
continuous-integration/drone/push Build is passing
feat: add test for Rocky Linux 8 (#1)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Reviewed-on: #1
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-committed-by: Robert Kaussow <xoxys@rknet.org>
2021-10-04 21:18:29 +02:00

26 lines
680 B
YAML

---
- block:
- name: Install Python3 packages
package:
name: "{{ item }}"
state: present
loop: "{{ python3_packages_extra + python3_packages }}"
- name: Remove other Python pckages
package:
name: "{{ item }}"
state: absent
loop: "{{ python3_packages_remove }}"
- name: Link binaries to '{{ python3_link_bin_path }}'
file:
src: "{{ item.src }}"
dest: "{{ python3_link_bin_path }}/{{ item.dest }}"
state: link
force: yes
loop: "{{ python3_link_bin }}"
loop_control:
label: "{{ python3_link_bin_path }}/{{ item.dest }}"
become: True
become_user: root