1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic.git synced 2024-12-11 23:41:32 +01:00

Merge pull request #4 from DO1JLR/cleanup

Change license link in README and change Author
This commit is contained in:
L3D 2021-03-23 17:57:04 +01:00 committed by GitHub
commit ec35b30c2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 113 additions and 111 deletions

View file

@ -1,3 +1,4 @@
---
style: github
template: CHANGELOG.tpl.md
info:

View file

@ -1,22 +1,20 @@
---
name: 🌌 Galaxy import
name: Galaxy release
# yamllint disable-line rule:truthy
on:
push:
branches:
- master
branches: ['main']
release:
types:
- published
types: ['created']
jobs:
import:
name: 🚀 Galaxy Action
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: galaxy
uses: robertdebock/galaxy-action@1.1.1
uses: robertdebock/galaxy-action@1.1.0
with:
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }}
galaxy_api_key: ${{ secrets.galaxy_api_key }}

View file

@ -1,5 +1,6 @@
---
name: 🎭 Tests
# yamllint disable-line rule:truthy
on:
push:
paths:

1
.gitignore vendored
View file

@ -1 +1,2 @@
.cache
.DS_Store

8
.yamllint Normal file
View file

@ -0,0 +1,8 @@
---
extends: default
rules:
# 150 chars should be enough, but don't fail if a line is longer
line-length:
max: 150
level: warning

22
LICENSE Normal file
View file

@ -0,0 +1,22 @@
MIT License
Copyright (c) 2019, Arillso
Copyright (c) 220 L3D <l3d@c3woc.de>
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.

View file

@ -187,14 +187,7 @@ none
- restic
```
## Author
- Matthias Leutenegger
## License
This project is under the MIT License. See the [LICENSE](https://sbaerlo.ch/licence) file for the full license text.
This project is under the MIT License. See the [LICENSE](LICENSE) file for the full license text.
## Copyright
(c) 2019, Arillso

View file

@ -1,33 +1,21 @@
---
galaxy_info:
role_name: restic
author: Matthias Leutenegger
description: Role to deploy restic and setup backups.
# company:
author: do1jlr
description: Ansible role to deploy restic and setup backups.
license: MIT
min_ansible_version: 2.8
min_ansible_version: 2.9
platforms:
- name: EL
versions:
- 6
- 7
- name: Fedora
versions:
- 29
- name: Ubuntu
versions:
- bionic
- cosmic
- name: Debian
versions:
- jessie
- stretch
- buster
# - name: Windows
# versions:
# - all
versions: all
- name: EL
versions: all
- name: Fedora
versions: all
- name: Ubuntu
versions: all
galaxy_tags:
- backup
- restic
dependencies: []

View file

@ -1,27 +1,6 @@
---
# tasks file for skeleton
- name: add OS specific variables
include_vars: '{{ loop_vars }}'
with_first_found:
- files:
- '{{ distribution }}-{{ distribution_version }}.yml'
- '{{ distribution }}-{{ distribution_major_version }}.yml'
- '{{ distribution }}.yml'
- '{{ ansible_os_family }}.yml'
- '{{ ansible_system }}.yml'
- 'defaults.yml'
paths:
- 'vars'
loop_control:
loop_var: loop_vars
vars:
distribution: '{{ ansible_distribution }}'
distribution_version: '{{ ansible_distribution_version }}'
distribution_major_version: '{{ ansible_distribution_major_version }}'
tags:
- configuration
- packages
ansible.builtin.include_vars: "{{ lookup('first_found', restic_os_variables) }}"
- name: Ensure restic directories exist
file:

11
vars/main.yml Normal file
View file

@ -0,0 +1,11 @@
---
restic_os_variables:
files:
- '{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml'
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml'
- '{{ ansible_distribution }}.yml'
- '{{ ansible_os_family }}.yml'
- '{{ ansible_system }}.yml'
- 'defaults.yml'
paths:
- 'vars'