$: echo''|ANSIBLE_NOCOLOR=true ansible-lint -R -p /tmp/test.yml < /dev/null
[WARNING]: While constructing a mapping from /tmp/test.yml, line 2, column 1,
found a duplicate dict key (g_test_1). Using last defined value only.
[WARNING]: While constructing a mapping from <unicode string>, line 2, column
1, found a duplicate dict key (g_test_1). Using last defined value only.
Cependant, /dev/null n'était pas ce qu'il me fallait, il s'agissait de /dev/fd/1 :
$: echo''|ANSIBLE_NOCOLOR=true ansible-lint -R -p /tmp/test.yml < /dev/fd/1
[WARNING]: While constructing a mapping from /tmp/test.yml, line 2, column 1, found a duplicate dict key (g_test_1). Using last defined value only.
[WARNING]: While constructing a mapping from <unicode string>, line 2, column 1, found a duplicate dict key (g_test_1). Using last defined value only.
[^] # Re: TERM, pipe, stdin
Posté par Flyounet (site web personnel) . En réponse au message [Résolu] Ai-je détecté un bug ou bien suis-je mauvais avec GNU Bash et ansible-lint ?. Évalué à 1.
Ton idée allait dans la bonne direction :
Cependant,
/dev/nulln'était pas ce qu'il me fallait, il s'agissait de/dev/fd/1:Un énorme merci pour m'avoir résolu ce problème.