Skip to content
Snippets Groups Projects
Commit ab3e6886 authored by Lars Beckers's avatar Lars Beckers
Browse files

Merge branch 'th/ansible-lint' into 'master'

Update CI to reasonable versions

See merge request !10
parents f98d9e58 6bd2a7ed
Branches
No related tags found
1 merge request!10Update CI to reasonable versions
Pipeline #5336 passed
parseable: true
quiet: true
---
use_default_rules: true
warn_list:
- experimental
- jinja[spacing]
- fqcn[action-core]
- fqcn[action]
- name[casing]
- name[missing]
skip_list:
- '204' # line length is checked by yamllint
- '401' # git checkout must contain explicit version
- '701' # 7xx is about ansible galaxy guidelines
- '702'
- '703'
- role-name
---
image: registry.git.fsmpi.rwth-aachen.de/infra/ci-containers/fsmpi-ansible:buster
image: alpine:3.18
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apk --no-cache add ansible ansible-lint yamllint ripgrep black
- export LANG=en_US.UTF-8
- chmod o-w .
- apt-get -qq update && apt-get -qq install -y ansible-lint ripgrep
- ansible --version
- ansible-lint --version
- yamllint --version
......@@ -19,7 +19,12 @@ stages:
test:
stage: test
script:
- >-
ansible-lint
--format codeclimate
> codeclimate.json
- yamllint .
- ansible-lint ./*/
# yamllint disable-line rule:line-length
- "! rg --fixed-strings 'passwordstore' ./*/templates"
artifacts:
reports:
codequality: codeclimate.json
......@@ -41,7 +41,10 @@
block:
- name: ensure we have our postgres backup script
copy:
src: "pgbackup{{ '-bullseye' if ansible_distribution_major_version|int(default=99) > 10 else '' }}.sh"
src: >-
pgbackup{{
'-bullseye' if ansible_distribution_major_version|int(default=99) > 10
else '' }}.sh
dest: /usr/local/bin/pgbackup.sh
owner: root
group: root
......
......@@ -9,11 +9,17 @@
file:
path: /etc/systemd/system/redis-server.service.d
state: directory
owner: root
group: root
mode: "0755"
- name: Configure redis-server systemd options
copy:
src: override.conf
dest: /etc/systemd/system/redis-server.service.d/override.conf
owner: root
group: root
mode: "0644"
notify:
- Reload systemd
- Restart redis-server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment