fix yamllint

This commit is contained in:
Barnabas Busa 2023-08-11 10:27:36 +02:00
parent 088273d11b
commit 12de34e3a9
No known key found for this signature in database
GPG Key ID: D7AF98F214C59E4E
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
---
# Remove EXTERNALLY-MANAGED file if we're on Debian12 # Remove EXTERNALLY-MANAGED file if we're on Debian12
# Related issue: https://github.com/geerlingguy/ansible-role-pip/issues/57 # Related issue: https://github.com/geerlingguy/ansible-role-pip/issues/57
- name: Get python3 version installed - name: Get python3 version installed
@ -8,4 +9,4 @@
ansible.builtin.file: ansible.builtin.file:
path: /usr/lib/python3.11/EXTERNALLY-MANAGED path: /usr/lib/python3.11/EXTERNALLY-MANAGED
state: absent state: absent
when: py3ver is defined and py3ver.stdout.find("3.11") != -1 when: py3ver is defined and py3ver.stdout.find("3.11") != -1

View File

@ -1,8 +1,8 @@
--- ---
- name: Remove externally managed from Debian 12 - name: Remove externally managed from Debian 12
ansible.builtin.import_tasks: debian12.yml ansible.builtin.import_tasks: debian12.yml
when: when:
- ansible_distribution == "Debian" - ansible_distribution == "Debian"
- ansible_distribution_version == "12" - ansible_distribution_version == "12"
- name: Ensure Pip is installed. - name: Ensure Pip is installed.