Skip to content

Instantly share code, notes, and snippets.

@apatard
Created April 23, 2021 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apatard/caefe0f42abb98c23731aadb2ee393b6 to your computer and use it in GitHub Desktop.
Save apatard/caefe0f42abb98c23731aadb2ee393b6 to your computer and use it in GitHub Desktop.
weird ansible-lint failure
#!/bin/bash
set -x
set -e
mkdir test
cd test
git init
mkdir -p molecule/tasks/
cat > test.yml <<EOF
---
- hosts: all
become: false
gather_facts: false
tasks:
- name: Hello
debug:
msg: "Hello"
EOF
cat > molecule/tasks/converge.yml <<EOF
---
- name: Converge
import_playbook: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | default('../..', true) }}/test.yml"
EOF
git add .
ansible-lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment