diff --git a/README.md b/README.md index 225dd44..303e949 100644 --- a/README.md +++ b/README.md @@ -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 ---------------- diff --git a/defaults/main.yml b/defaults/main.yml index 307cebd..b1a78f6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,5 @@ --- # defaults file for tco.burp_client +burp_packages: + burp +burp_cname: "{{ ansible_hostname }}" diff --git a/tasks/main.yml b/tasks/main.yml index 0787676..29be65a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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'