Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
Revision role
  • Loading branch information
sbaerlocher committed Dec 20, 2019
2 parents 4880123 + 0791baa commit aa41d88
Show file tree
Hide file tree
Showing 11 changed files with 148 additions and 94 deletions.
48 changes: 0 additions & 48 deletions .travis.blank.yml

This file was deleted.

55 changes: 21 additions & 34 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,35 @@
---
language: python
python: "2.7"

# Use the new container infrastructure
sudo: false

# Install ansible
addons:
apt:
packages:
- python-pip
services: docker

env:
global:
- ROLE_NAME: anydesk
matrix:
- MOLECULE_DISTRO: centos7
- MOLECULE_DISTRO: centos6
- MOLECULE_DISTRO: ubuntu1804
- MOLECULE_DISTRO: debian9
- MOLECULE_DISTRO: debian10

install:
# Install ansible
- pip install ansible

# Install ansible-lint
- pip install ansible-lint

# Install yamllint
- pip install yamllint
- pip install molecule docker

# Install tests rules
- git submodule add https://github.com/arillso/tests tests
- git clone https://github.com/arillso/tests molecule/default/lint

before_script:
# Check ansible version
- ansible --version

# Check ansible-lint version
- ansible-lint --version

# Check ansible-lint version
- yamllint --version
- cd ../
- mv ansible.$ROLE_NAME sbaerlocher.$ROLE_NAME
- cd sbaerlocher.$ROLE_NAME

script:
# Ansible Lint check
- ansible-lint -R -r tests/ansible-lint/ .

# YAML Lint check
- yamllint -c tests/yaml-lint/yamllint.yml .
- molecule test

notifications:
# webhooks: https://galaxy.ansible.com/api/v1/notifications/
webhooks:
urls:
- https://galaxy.ansible.com/api/v1/notifications/
on_success: always
email:
on_success: never
on_failure: always
5 changes: 5 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
extends: default
rules:
line-length:
max: 160
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changelog

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
and [human-readable changelog](https://keepachangelog.com/en/1.0.0/).

## 1.1.0

### Fiexed

- Revision of the role
- Renaming of the variable.

## 1.0.0

### Added

- Inital commit
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2020 Simon Bärlocher

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
39 changes: 29 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ansible Role: anydesk

[![Build Status](https://img.shields.io/travis-ci/sbaerlocher/ansible.anydesk.svg?branch=master&style=popout-square)](https://travis-ci.org/sbaerlocher/ansible.anydesk) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=popout-square)](https://sbaerlo.ch/licence) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-anydesk-blue.svg?style=popout-square)](https://galaxy.ansible.com/sbaerlocher/anydesk) [![Ansible Role](https://img.shields.io/ansible/role/d/id.svg?style=popout-square)](https://galaxy.ansible.com/sbaerlocher/anydesk)
[![Build Status](https://img.shields.io/travis-ci/sbaerlocher/ansible.anydesk.svg?branch=master&style=popout-square)](https://travis-ci.org/sbaerlocher/ansible.anydesk) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=popout-square)](https://sbaerlo.ch/licence) [![Ansible Galaxy](https://img.shields.io/badge/ansible--galaxy-anydesk-blue.svg?style=popout-square)](https://galaxy.ansible.com/sbaerlocher/anydesk) [![Ansible Role](https://img.shields.io/ansible/role/d/35838.svg?style=popout-square)](https://galaxy.ansible.com/sbaerlocher/anydesk)

## Description

Expand All @@ -18,6 +18,31 @@ None

## Role Variables

### Download Linl

Dwonload link from AnyDesk.

```yml
anydesk_download_url: 'https://download.anydesk.com/AnyDesk.exe'
```

### Directory

Directory where the file should be stored

```yml
anydesk_root_directory: "{{ ansible_env.SystemDrive }}\\{{ source_of_supply_name | default('Support') }}"
anydesk_tools_directory: '{{ anydesk_root_directory }}\\tools.d'
```

### binary

Name of the binary file.

```yml
anydesk_binary_nane: AnyDesk.exe'
```

## Dependencies

None
Expand All @@ -27,23 +52,17 @@ None
```yml
- hosts: all
roles:
- sbaerlocher.anydesk
- sbaerlocher.anydesk
```

## Changelog

### 1.0.0

* inital commit

## Author

* [Simon Bärlocher](https://sbaerlocher.ch)
- [Simon Bärlocher](https://sbaerlocher.ch)

## License

This project is under the MIT License. See the [LICENSE](https://sbaerlo.ch/licence) file for the full license text.

## Copyright

(c) 2019, Simon Bärlocher
(c) 2020, Simon Bärlocher
8 changes: 8 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
---
# defaults file for sbaerlocher.anydesk

# If a proxy is in use this information can be used.
# By default, proxy settings are taken from the default_* variables,
# if they are not defined they are ignored.
anydesk_proxy: '{{ default_proxy | default(omit) }}'
anydesk_proxy_password: '{{ default_proxy_password | default(omit) }}'
anydesk_proxy_username: '{{ default_proxy_username | default(omit) }}'
anydesk_validate_certs: '{{ default_validate_certs | default(true) }}'
29 changes: 29 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
options:
config-file: .yamllint.yml
platforms:
- name: instance
image: 'geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest'
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
pre_build_image: true
provisioner:
name: ansible
lint:
name: ansible-lint
playbooks:
converge: ${MOLECULE_PLAYBOOK:-playbook.yml}
scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8
5 changes: 5 additions & 0 deletions molecule/default/playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Converge
hosts: all
roles:
- role: sbaerlocher.anydesk
5 changes: 3 additions & 2 deletions tasks/distribution/Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
- name: 'windows : download AnyDesk'
win_get_url:
url: '{{ anydesk_download_url }}'
dest: '{{ anydesk_exe_path }}'
force: false
dest: '{{ anydesk_tools_directory }}\\{{ anydesk_binary_nane }}'
proxy_url: '{{ anydesk_proxy }}'
validate_certs: '{{ anydesk_validate_certs }}'

- name: 'windows : shortcuts for support'
win_shortcut:
Expand Down
12 changes: 12 additions & 0 deletions vars/Windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
# vars file for sbaerlocher.anydesk

# Dwonload link from AnyDesk.
anydesk_download_url: 'https://download.anydesk.com/AnyDesk.exe'

# Directory where the file should be stored
anydesk_root_directory: "{{ ansible_env.SystemDrive }}\\{{ source_of_supply_name | default('Support') }}"
anydesk_tools_directory: '{{ anydesk_root_directory }}\\tools.d'

# Name of the binary file.
anydesk_binary_nane: AnyDesk.exe'

0 comments on commit aa41d88

Please sign in to comment.