Skip to content

Commit

Permalink
Fix package url and linting errors (#12)
Browse files Browse the repository at this point in the history
* Use correct url for packages

* Use native command instead of module for prepare step
  • Loading branch information
kevin-studer authored Jan 15, 2024
1 parent 8a8bdee commit 7cf26ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
20 changes: 10 additions & 10 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
# defaults file for snowagent

# The endpoint for the snowagent
snowagent_endpoint: 'https://uni-sam-gw1.campus.unibe.ch'
snowagent_endpoint: "https://uni-sam-gw1.campus.unibe.ch"

# The sitename which the clients register to
snowagent_sitename: 'unibe-zb-id'
snowagent_sitename: "unibe-zb-id"

# The baseurl for which the snowagent will be downloaded
snowagent_baseurl: 'https://tools.id.unibe.ch/snowagent/'
snowagent_baseurl: "https://tools.id.unibe.ch/snowagent/"

# Download url of the rpm package
snowagent_download_rpm: '{{ snowagent_baseurl }}unibe_snowagent-{{ snowagent_version }}.x86_64.rpm'
snowagent_download_rpm: "{{ snowagent_baseurl }}unibe_snowagent-{{ snowagent_version }}.x86_64.rpm"

# Download url of the debian package
snowagent_download_deb: '{{ snowagent_baseurl }}unibe_snowagent-{{ snowagent_version }}_amd64.deb'
snowagent_download_deb: "{{ snowagent_baseurl }}unibe_snowagent_{{ snowagent_version }}_amd64.deb"

# Version of the snowagent
snowagent_version: '6.6.1-1'
snowagent_version: "6.6.1-1"

# LogLevel in the application
snowagent_loglevel: 'warning'
snowagent_loglevel: "warning"

# Excludes of directories which will not be observed. Notice: /tmp is already escluded in the main config file
snowagent_excludes:
- '/home/*'
- '/var/*'
- '/storage/*'
- "/home/*"
- "/var/*"
- "/storage/*"
7 changes: 3 additions & 4 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
state: started

- name: Prepare Download | Install fpm
community.general.gem:
name: fpm
user_install: false
state: present
ansible.builtin.command:
cmd: gem install fpm
changed_when: true

- name: Prepare Download | Create executable
ansible.builtin.copy:
Expand Down

0 comments on commit 7cf26ee

Please sign in to comment.