Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from outsideopen/dl/updates
Updates for systemd restart
- Loading branch information
Showing
14 changed files
with
113 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
profile: null # min, basic, moderate,safety, shared, production | ||
|
||
exclude_paths: | ||
- .cache/ | ||
- .github/ | ||
- .ansible-lint | ||
|
||
# Enable checking of loop variable prefixes in roles | ||
loop_var_prefix: "^(__|{role}_)" | ||
|
||
# Enforce variable names to follow pattern below, in addition to Ansible own | ||
# requirements, like avoiding python identifiers. To disable add `var-naming` | ||
# to skip_list. | ||
var_naming_pattern: "^[a-z_][a-z0-9_]*$" | ||
|
||
use_default_rules: true | ||
|
||
# Ansible-lint does not automatically load rules that have the 'opt-in' tag. | ||
# You must enable opt-in rules by listing each rule 'id' below. | ||
enable_list: | ||
- args | ||
- empty-string-compare # opt-in | ||
- no-log-password # opt-in | ||
- no-same-owner # opt-in | ||
# add yaml here if you want to avoid ignoring yaml checks when yamllint | ||
# library is missing. Normally its absence just skips using that rule. | ||
- yaml | ||
|
||
# Ansible-lint does not fail on warnings from the rules or tags listed below | ||
warn_list: | ||
- experimental # experimental is included in the implicit list | ||
|
||
# Offline mode disables installation of requirements.yml and schema refreshing | ||
offline: true | ||
|
||
# Allow setting custom prefix for name[prefix] rule | ||
#task_name_prefix: "{stem} | " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,15 @@ | ||
--- | ||
name: Release to Ansible Galaxy | ||
|
||
'on': | ||
push: | ||
tags: | ||
- '*' | ||
schedule: | ||
- cron: '1 10 14 * *' | ||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: galaxy | ||
uses: robertdebock/galaxy-action@1.0.1 | ||
- name: publish to galaxy | ||
uses: ansible-actions/ansible-galaxy-action@v1.2.0 | ||
with: | ||
galaxy_api_key: ${{ secrets.galaxy_api_key }} | ||
slack: | ||
name: Slack | ||
needs: release | ||
runs-on: ubuntu-latest | ||
if: always() | ||
steps: | ||
- uses: technote-space/workflow-conclusion-action@v2 | ||
- uses: 8398a7/action-slack@v3 | ||
with: | ||
author_name: Galaxy Release | ||
status: ${{ env.WORKFLOW_CONCLUSION }} # neutral, success, skipped, cancelled, timed_out, action_required, failure | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
--- | ||
extends: default | ||
|
||
ignore: | | ||
venv/ | ||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
line-length: | ||
max: 120 | ||
level: warning | ||
indentation: | ||
spaces: 2 | ||
indent-sequences: consistent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: Restart duologsync | ||
systemd: | ||
ansible.builtin.systemd: | ||
name: duologsync | ||
state: started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.