From 3a02d1d9bdecf54b88812c79dee85f9ab958ceae Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 17 Nov 2023 15:26:42 -0500 Subject: [PATCH] remove syntax check as ansible-lint already does this; see: https://ansible.readthedocs.io/projects/lint/rules/syntax-check/ --- .drone.yml | 1 - hello.yml | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index dd74b32..754efc7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,7 +35,6 @@ steps: - name: "Syntax check and Ansible Lint" image: gitea.thezengarden.net/podman/images/ansible-dev:latest commands: - - ansible-playbook --syntax-check $DRONE_WORKSPACE/hello.yml - ansible-lint --offline $DRONE_WORKSPACE when: branch: diff --git a/hello.yml b/hello.yml index b43e454..a7bb415 100644 --- a/hello.yml +++ b/hello.yml @@ -4,12 +4,10 @@ become: false gather_facts: false + bob: + - is great + tasks: - name: Say Hello world ansible.builtin.debug: msg: Hello world! - - - - name: This should generate a syntax error but pass ansible-lint - ansible.builtin.debug: - mg: "this is incorrect, and should be `msg` instead!"