Created
April 23, 2021 12:49
-
-
Save apatard/caefe0f42abb98c23731aadb2ee393b6 to your computer and use it in GitHub Desktop.
weird ansible-lint failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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