Tag: workaround

ansible template parsing workaround

Whilst trying to template a python script with ansible 2.4 I’ve got a weird error: fatal: [HOSTNAME]: FAILED! => { “changed”: false, “failed”: true, “msg”: “AnsibleError: template error while templating string: Missing end of comment tag. String: #!/usr/bin/python\nimport os\nimport json\n\nif __name__ == \”__main__\”:\n # Iterate over all block devices, but ignore them if they are

Continue Reading…