Skip to content

Commit

Permalink
fiddle with galaxy-id to fix the badges etc (#142)
Browse files Browse the repository at this point in the history
* Update README.md
* fix/improve linting
  • Loading branch information
stefangweichinger authored Dec 11, 2023
1 parent 102aa8f commit da7b9df
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ exclude_paths:
- ./.tox
- ./.cache
- ./.cz.yaml
- ./.github

skip_list:
- '106'
- galaxy[version-incorrect]
warn_list: # or 'skip_list' to silence them completely
- '204' # Lines should be no longer than 160 chars
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: checkout
uses: actions/checkout@v3
- name: ansible-lint
uses: ansible-community/ansible-lint-action@main
uses: ansible-community/ansible-lint-action@v6
test:
needs:
- lint
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
args: [-c=.yamllint]

- repo: https://github.com/ansible-community/ansible-lint.git
rev: v6.10.2
rev: v6.18.0
hooks:
- id: ansible-lint

Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Unreleased

## 0.1.2 (2023-03-09)

## 0.1.1 (2023-01-15)

### Fix

- **fix:-fixes-#131.-correct-permissions-of-config-directory**: fix the permissions to not break perms if config directory is something common like /etc (#132)

## 0.1.0 (2023-01-12)

### Feat

- **os**: add support for openSUSE (#114)

### Fix

- missing become for man page creation
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# ansible-rclone

![Ansible Galaxy Role](https://img.shields.io/ansible/role/46861?label=Ansible%20Galaxy%20Role&style=for-the-badge)
![Ansible Galaxy Role Downloads](https://img.shields.io/ansible/role/d/stefangweichinger/ansible_rclone?style=for-the-badge)

![Tag](https://img.shields.io/github/v/tag/stefangweichinger/ansible-rclone?sort=semver&style=for-the-badge)

![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/stefangweichinger/ansible-rclone/molecule.yml)

[![Ansible Molecule](https://github.com/stefangweichinger/ansible-rclone/actions/workflows/molecule.yml/badge.svg)](https://github.com/stefangweichinger/ansible-rclone/actions/workflows/molecule.yml)

[![GitHub Open Issues](https://img.shields.io/github/issues/stefangweichinger/ansible-rclone.svg)](https://github.com/stefangweichinger/ansible-rclone/issues)
[![GitHub Stars](https://img.shields.io/github/stars/stefangweichinger/ansible-rclone.svg)](https://github.com/stefangweichinger/ansible-rclone)
[![GitHub Forks](https://img.shields.io/github/forks/stefangweichinger/ansible-rclone.svg)](https://github.com/stefangweichinger/ansible-rclone)

[![Ansible Role](https://img.shields.io/ansible/role/46861.svg)](https://galaxy.ansible.com/stefangweichinger/ansible_rclone)
[![Ansible Role Downloads](https://img.shields.io/ansible/role/d/46861.svg)](https://galaxy.ansible.com/stefangweichinger/ansible_rclone)


AKA `ansible_rclone` and formerly `rclone`

Expand Down
10 changes: 10 additions & 0 deletions galaxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: ansible_rclone
namespace: stefangweichinger
version: 0.1.2
authors:
- stefangweichinger
readme: ./README.md
description: "install rclone with ansible"
repository: "https://github.com/stefangweichinger/ansible-rclone"
tags: [tools, linux]
3 changes: 3 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# runtime.yml
---
requires_ansible: ">=2.14.0"
10 changes: 6 additions & 4 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
pre_tasks:

- name: Update apt cache.
apt: update_cache=true cache_valid_time=600
ansible.builtin.apt:
update_cache: yes
cache_valid_time: 600
when: ansible_os_family == 'Debian'

- name: Wait for systemd to complete initialization. # noqa 303
command: systemctl is-system-running
- name: Wait for systemd to complete initialization. # noqa command-instead-of-module
ansible.builtin.command: systemctl is-system-running
register: systemctl_status
until: >
'running' in systemctl_status.stdout or
Expand All @@ -21,7 +23,7 @@
changed_when: false

- name: Show ansible version
debug:
ansible.builtin.debug:
msg: "Ansible Version: {{ ansible_version.full }}"

roles:
Expand Down
16 changes: 9 additions & 7 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@

tasks:

- name: "rclone - retrieve information"
stat:
- name: "Rclone - retrieve information"
ansible.builtin.stat:
path: "/usr/local/bin/rclone"
register: remote_file
- name: "rclone - assert that file is created correctly"
assert:

- name: "Rclone - assert that file is created correctly"
ansible.builtin.assert:
that:
- "remote_file.stat.exists"
- "remote_file.stat.isreg" # is a regular file
# - "remote_file.stat.path == '{{ test_rclone_file_path }}'"
- "remote_file.stat.mode == '0755'"

- name: "rclone - check version"
command: "/usr/local/bin/rclone version" # noqa 301
- name: "Rclone - check version"
ansible.builtin.command: "/usr/local/bin/rclone version" # noqa no-changed-when
register: shell_result

- debug:
- name: "Display rclone version"
ansible.builtin.debug:
var: shell_result.stdout_lines

0 comments on commit da7b9df

Please sign in to comment.