Skip to content

Commit

Permalink
Add support for Opensuse Leap 15.1 and 15.2 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
radek-sprta authored Sep 13, 2020
1 parent 44659c3 commit c927028
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ galaxy_info:
versions:
- 7
- 8
- name: OpenSuse
versions:
- 15.1
- 15.2
galaxy_tags:
- wireguard
- vpn
Expand Down
8 changes: 8 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@

when: ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7"

- name: Install wireguard and tools (zypper)
zypper:
name:
- wireguard-tools
state: present
when:
- ansible_distribution == "openSUSE Leap"

- name: Read private key
stat:
path: "{{ wireguard_path }}/privatekey"
Expand Down

0 comments on commit c927028

Please sign in to comment.