-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
110 additions
and
41 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 |
---|---|---|
@@ -1,13 +1,20 @@ | ||
--- | ||
profile: production | ||
|
||
exclude_paths: | ||
- ./molecule/ | ||
- ./.github/ | ||
- .github/ | ||
- molecule/ | ||
- venv/ | ||
|
||
parseable: true | ||
quiet: true | ||
quiet: false | ||
|
||
skip_list: | ||
- '401' | ||
- '204' | ||
- '403' | ||
- '702' | ||
- '305' | ||
- "401" | ||
- "204" | ||
- "403" | ||
- "702" | ||
- "305" | ||
|
||
use_default_rules: true | ||
verbosity: 1 | ||
verbosity: 3 |
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 @@ | ||
--- | ||
repository: | ||
description: Prepare your system to be managed by Ansible. | ||
homepage: https://savinmi.ru/ | ||
homepage: https://s11l.me/ | ||
topics: bootstrap, python, sudo, ansible, molecule, playbook |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
name: "TODO 2 Issue" | ||
|
||
on: | ||
"on": | ||
push: | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-20.04" | ||
|
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
ignore: | | ||
.github/* | ||
molecule/* | ||
venv/* | ||
|
||
extends: default | ||
|
||
|
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,64 @@ | ||
# yaml-language-server: $schema=https://taskfile.dev/schema.json | ||
--- | ||
version: "3" | ||
|
||
set: | ||
- pipefail | ||
|
||
silent: true | ||
|
||
tasks: | ||
default: | ||
desc: Show help | ||
silent: true | ||
cmds: | ||
- task --list --color | ||
|
||
venv: | ||
desc: Create python3 virtual environment | ||
preconditions: | ||
- test -f $(which python3) | ||
cmds: | ||
- $(which python3) -m venv venv | ||
- ./venv/bin/python -m pip install --upgrade pip | ||
|
||
install:pip: | ||
desc: Install python requirements | ||
deps: | ||
- venv | ||
preconditions: | ||
- test -d ./venv | ||
- test -f requirements.txt | ||
cmds: | ||
- ./venv/bin/pip install -r requirements.txt | ||
|
||
anslint: | ||
desc: Run ansible-lint | ||
deps: | ||
- install:pip | ||
preconditions: | ||
- test -f ./venv/bin/ansible-lint | ||
cmds: | ||
- ./venv/bin/ansible-lint --force-color . | ||
|
||
ymllint: | ||
desc: Run yamllint | ||
deps: | ||
- install:pip | ||
preconditions: | ||
- test -f ./venv/bin/yamllint | ||
cmds: | ||
- ./venv/bin/yamllint --format auto --strict . | ||
|
||
lint: | ||
desc: Run all linters | ||
cmds: | ||
- task: ymllint | ||
- task: anslint | ||
|
||
test: | ||
desc: Run test for this role | ||
deps: | ||
- lint | ||
cmds: | ||
- echo "Oooops... Need to implement!" |
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,10 +1,6 @@ | ||
# These role have been tested with these PIP component. | ||
# To install the required version yourself, use a command as: | ||
# `python -m pip --user install -r requirements.txt` | ||
# See the pip requirements file documentation for details: | ||
# https://pip.pypa.io/en/stable/user_guide/#requirements-files | ||
# | ||
# Tests run on the previous and current (latest) version of Ansible. | ||
ansible>=2.10 | ||
# Some Jinja2 filters are used that are available in the newer releases. | ||
jinja2>=2.11.2 | ||
ansible==7.5.0 | ||
ansible-core==2.14.5 | ||
ansible-lint==6.17.2 | ||
black==23.3.0 | ||
jmespath==1.0.1 | ||
yamllint==1.31.0 |
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,4 +1,4 @@ | ||
--- | ||
# tasks file for sample-role | ||
- name: sample_role | sample ping | ||
ping: | ||
- name: Sample ping | ||
ansible.builtin.ping: |