Changeset - 834c3a4d591a
[Not reviewed]
0 1 0
Branko Majic (branko) - 6 months ago 2024-09-22 22:43:34
branko@majic.rs
MAR-218: Use built-in module for diverting the ferm binary.
1 file changed with 5 insertions and 6 deletions:
0 comments (0 inline, 0 general) First comment
roles/common/tasks/main.yml
Show inline comments
 
@@ -214,12 +214,11 @@
 
  when: deploy_ca_certificates_result.changed
 
  changed_when: true  # Always results in change due to task logic.
 

	
 
- name: Set-up file diversions for custom files that overrride package-provided ones
 
  ansible.builtin.command: "dpkg-divert --divert '{{ item }}.original' --rename '{{ item }}'"
 
  register: "dpkg_divert"
 
  changed_when: "'Adding' in dpkg_divert.stdout"
 
  with_items:
 
    - "/usr/sbin/ferm"
 
- name: Set-up file diversion for custom ferm binary
 
  community.general.dpkg_divert:
 
    path: "/usr/sbin/ferm"
 
    divert: "/usr/sbin/ferm.original"
 
    rename: true
 
  notify:
 
    - Restart ferm
 

	
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now