Skip to content

Commit

Permalink
Revert "Manually remove repo with file module"
Browse files Browse the repository at this point in the history
This reverts commit d4134a7. Fixes
#1. This issue
was fixed in the latest version of community.general.
  • Loading branch information
gotmax23 committed Oct 14, 2021
1 parent 495070c commit 636d300
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: zypper_dist_upgrade
become: true
# when: packman_state == "present"
when: packman_state == "present"
community.general.zypper:
name: "*"
state: dist-upgrade
Expand Down
11 changes: 2 additions & 9 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@
fingerprint: "{{ packman_gpg_key_fingerprint if packman_check_key_fingerprint | bool else omit }}"
state: "{{ packman_state }}"

- name: "Install Packman Repository"
when: packman_state == "present"
- name: "{{ installw }} Packman Repository"
notify: zypper_dist_upgrade
community.general.zypper_repository:
# state: "{{ packman_state }}"
name: packman
refresh: true
priority: 90
repo: "{{ packman_repo_url }}"

- name: Remove Packamn Repository
when: packman_state == "absent"
ansible.builtin.file:
path: /etc/zypp/repos.d/packman.repo
state: absent
state: "{{ packman_state }}"

0 comments on commit 636d300

Please sign in to comment.