Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed Jul 14, 2024
1 parent b980461 commit 024ef02
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
# tasks file for openssl
# - name: Ignore PEP 668 because it is stupid.
# ansible.builtin.file:
# path: /usr/lib/python3.11/EXTERNALLY-MANAGED
# state: absent

# - name: Ignore PEP 668 because it is stupid.
# ansible.builtin.command:
# cmd: mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old
# become: true
# args:
# creates: /usr/lib/python3.11/EXTERNALLY-MANAGED.old
- name: Check if EXTERNALLY-MANAGED file exists
ansible.builtin.stat:
path: /usr/lib/python3.11/EXTERNALLY-MANAGED
register: externally_managed_file

- name: Rename EXTERNALLY-MANAGED file if it exists
ansible.builtin.command:
cmd: mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old
when: externally_managed_file.stat.exists
args:
creates: /usr/lib/python3.11/EXTERNALLY-MANAGED.old

- name: Import assert.yml
ansible.builtin.import_tasks: assert.yml
Expand Down

0 comments on commit 024ef02

Please sign in to comment.