Skip to content
Snippets Groups Projects

Setting ansible lint 01

1 file
+ 12
12
Compare changes
  • Side-by-side
  • Inline
+ 12
12
@@ -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