Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
databases
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
databases
Commits
ab3e6886
Commit
ab3e6886
authored
1 year ago
by
Lars Beckers
Browse files
Options
Downloads
Plain Diff
Merge branch 'th/ansible-lint' into 'master'
Update CI to reasonable versions See merge request
!10
parents
f98d9e58
6bd2a7ed
Branches
Branches containing commit
No related tags found
1 merge request
!10
Update CI to reasonable versions
Pipeline
#5336
passed
1 year ago
Stage: test
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.ansible-lint
+11
-7
11 additions, 7 deletions
.ansible-lint
.gitlab-ci.yml
+9
-4
9 additions, 4 deletions
.gitlab-ci.yml
postgres/tasks/main.yml
+4
-1
4 additions, 1 deletion
postgres/tasks/main.yml
redis-server/tasks/main.yml
+6
-0
6 additions, 0 deletions
redis-server/tasks/main.yml
with
30 additions
and
12 deletions
.ansible-lint
+
11
−
7
View file @
ab3e6886
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'
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
9
−
4
View file @
ab3e6886
---
---
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
This diff is collapsed.
Click to expand it.
postgres/tasks/main.yml
+
4
−
1
View file @
ab3e6886
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
redis-server/tasks/main.yml
+
6
−
0
View file @
ab3e6886
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment