make it work on debian

This commit is contained in:
2024-01-31 17:22:21 +01:00
parent 1c345387cd
commit 4f56fa1f68
3 changed files with 13 additions and 4 deletions

View File

@@ -11,12 +11,18 @@ Any pre-requisites that may not be covered by Ansible itself or the role should
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
* burp_folders: list of folders to backup [ /etc, /root, /home ]
* burp_server_directory: where to store backup on server - default to "/srv/Backups/opendoor/"
* burp_server: default guillotine.opendoor.fr
* burp_packages: name of burp package to install
* burp_cname: name of burp client - {{ ansible_hostname }}
* burp_password - group_names[0]}}/{{ inventory_hostname }}_burp_password
* burp_encryption_password - group_names[0]}}/{{ inventory_hostname }}_burp_encryption_password
Dependencies
------------
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
none
Example Playbook
----------------

View File

@@ -1,2 +1,5 @@
---
# defaults file for tco.burp_client
burp_packages:
burp
burp_cname: "{{ ansible_hostname }}"

View File

@@ -21,14 +21,14 @@
ansible.builtin.get_url:
url: https://copr.fedorainfracloud.org/coprs/yopito/burp2/repo/epel-{{ ansible_distribution_major_version }}/yopito-burp2-epel-{{ ansible_distribution_major_version }}.repo
dest: /etc/yum.repos.d/burp.repo
when: ansible_distribution != "Fedora"
when: ansible_distribution != "Fedora" and ansible_os_family == 'RedHat'
- name: install burp repo
ansible.builtin.get_url:
url: https://copr.fedorainfracloud.org/coprs/yopito/burp2/repo/fedora-{{ ansible_distribution_major_version }}/yopito-burp2-fedora-{{ ansible_distribution_major_version }}.repo
dest: /etc/yum.repos.d/burp.repo
when: ansible_distribution == "Fedora"
when: ansible_distribution == "Fedora" and ansible_os_family == 'RedHat'