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