Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
c3infodesk-deployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fejao
c3infodesk-deployment
Merge requests
!6
Setting ansible lint 01
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Setting ansible lint 01
Setting_ansible_lint_01
into
main
Overview
0
Commits
6
Pipelines
1
Changes
1
Merged
Setting ansible lint 01
fejao
requested to merge
Setting_ansible_lint_01
into
main
5 months ago
Overview
0
Commits
6
Pipelines
1
Changes
1
0
0
Merge request reports
Viewing commit
c825a3fc
Prev
Next
Show latest version
1 file
+
12
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c825a3fc
Updating .gitlab-ci.yml file
· c825a3fc
fejao
authored
5 months ago
.gitlab-ci.yml
+
12
−
12
View file @ c825a3fc
Edit in single-file editor
Open in Web IDE
Show full file
@@ -14,7 +14,7 @@ variables:
#####
PLAYBOOK_NAME_FOR_ROLE_TEST
:
"
playbook_example_01_test.yml"
PLAYBOOK_NAME_FOR_ROLE_DEPENDENCIES
:
"
playbook_example_02_dependencies.yml"
PLAYBOOK_NAME_FOR_ROLE_CLONE_REPOSITORIES
:
"
playbook_example_03_clone_repositories.yml"
#
PLAYBOOK_NAME_FOR_ROLE_CLONE_REPOSITORIES: "playbook_example_03_clone_repositories.yml"
stages
:
-
debug
@@ -46,7 +46,7 @@ build:
###
### TESTS
###
ansible-lint
-test
:
role
-test
:
stage
:
lint-tests
before_script
:
-
apt-get update && apt-get install -y python3-pip && apt-get clean && rm -rf /var/lib/apt/lists/*
@@ -56,7 +56,7 @@ ansible-lint-test:
-
ansible-lint $PLAYBOOK_NAME_FOR_ROLE_TEST
allow_failure
:
false
ansible-lint
-dependencies
:
role
-dependencies
:
stage
:
lint-tests
before_script
:
-
apt-get update && apt-get install -y python3-pip && apt-get clean && rm -rf /var/lib/apt/lists/*
@@ -66,12 +66,12 @@ ansible-lint-dependencies:
-
ansible-lint $PLAYBOOK_NAME_FOR_ROLE_DEPENDENCIES
allow_failure
:
false
ansible-lint
-clone-repositories
:
stage
:
lint-tests
before_script
:
-
apt-get update && apt-get install -y python3-pip && apt-get clean && rm -rf /var/lib/apt/lists/*
-
pip3 install -r requirements.txt
script
:
-
echo "Running ansible-lint tests at the role-> 'clone_repositories'"
-
ansible-lint $PLAYBOOK_NAME_FOR_ROLE_CLONE_REPOSITORIES
allow_failure
:
false
# role
-clone-repositories:
#
stage: lint-tests
#
before_script:
#
- apt-get update && apt-get install -y python3-pip && apt-get clean && rm -rf /var/lib/apt/lists/*
#
- pip3 install -r requirements.txt
#
script:
#
- echo "Running ansible-lint tests at the role-> 'clone_repositories'"
#
- ansible-lint $PLAYBOOK_NAME_FOR_ROLE_CLONE_REPOSITORIES
#
allow_failure: false
Loading