Skip to content
Snippets Groups Projects
Verified Commit 3a9b6a55 authored by Louis Abel's avatar Louis Abel :tv:
Browse files

init for mattermost

parents
No related branches found
No related tags found
No related merge requests found
# .ansible-lint
warn_list:
- '204' # Lines should be less than 160 characters
- '701' # meta/main.yml should contain relevant info
skip_list:
- '106' # Role name must match ^[a-z][a-z0-9_]+$ pattern
inventory
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: pretty-format-json
- id: detect-private-key
- repo: local
hooks:
- id: ansible-lint
name: Ansible-lint
description: This hook runs ansible-lint.
entry: ansible-lint --force-color
language: python
# do not pass files to ansible-lint, see:
# https://github.com/ansible/ansible-lint/issues/611
pass_filenames: false
always_run: true
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.0
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint
---
extends: default
rules:
line-length:
max: 140
level: warning
# Ansible AWX Template: Mattermost
Ansible AWX is the method used for the Rocky Linux infrastructure, as a replacement for using the CLI. This template is used to manage mattermost for the Rocky infrastructure.
## Provides / Information
This repository is for Mattermost.
```
.
├── README.md
├── defaults
│ └── main.yml
├── files
│ └── README.md
├── handlers
│ └── main.yml
├── tasks
│ └── main.yml
├── templates
│ └── README.md
├── tests
│ ├── README.md
│ ├── inventory
│ └── test.yml
└── vars
└── main.yml
```
# Collections
If you are wanting to use a collection specifically for this, you will need to define it in a `requirements.yml`, otherwise AWX will not install what you need to run your tasks.
Example:
```
---
# Roles
collections:
- netbox.netbox
- community.aws
- containers.podman
```
---
# Defaults
Files come here
---
# Handlers
# Roles
If you are wanting to use role specifically for this, you will need to define it in a `requirements.yml`, otherwise AWX will not install what you need to run your tasks.
Example:
```
---
# Roles
roles:
- rockylinux.ipagetcert
src: https://github.com/rocky-linux/ansible-role-ipa-getcert
version: main
```
---
# No tasks
- debug: msg="No tasks are provided here. Please import the task as needed in your playbook."
...
Templates go here
# Tests
Basic tests for the playbooks and tasks come here. Generally you need a `test.yml` and `inventory` file with at least `localhost`
---
- hosts: localhost
remote_user: root
tasks:
- import_tasks: example.yml
---
# Vars that should not be overridden
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment