New answers tagged

1 vote

using tabs within block for ansible blockinfile module

The YAML blocks preserve TAB. You have to use an editor that doesn't replace TAB with spaces. I used vi in the below example. The value of str2 are spaces closed with '0'. The value of str3 are 2 TAB(...
Vladimir Botka's user avatar
0 votes

Ansible - Continue (not ignore) upon Failure

One tactic you could use is to ignore the errors, but store the failure condition in a variable, and assert the state of that variable as the last task in the playbook. That way: All your tasks will ...
Ian Mackinnon's user avatar

Top 50 recent answers are included