Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: register git hash
- local_action: git
- args:
- repo: /etc/ansible
- dest: /etc/ansible
- update: no
- register: git_commit_result
- - name: create deployment_version_history.log
- file:
- path: /app/psoft/install_logs/deployment_version_history.log
- state: touch
- - name: get last log entry
- shell : tail -1 /app/psoft/install_logs/deployment_version_history.log
- register: version_log_result
- changed_when: false
- - name: write commit to history
- shell: echo "{{ git_commit_result.after }} peoplesoft.yml" >> /app/psoft/install_logs/deployment_version_history.log
- when: '{{ version_log_result.stdout }} != {{ git_commit_result.after + " peoplesoft.yml" }}'
- output:
- TASK [write commit to history] *************************************************
- task path: /etc/ansible/peoplesoft.yml:117
- fatal: [net12204]: FAILED! => {"failed": true, "msg": "The conditional check '{{ version_log_result.stdout }} != {{ git_commit_result.after + \" peoplesoft.yml\" }}' failed. The error was: template error while templating string: unexpected char u'a' at 8. String: {% if 62ab24b0f5cafa8bf46b20a9ca031e896e994424 peoplesoft.yml != 62ab24b0f5cafa8bf46b20a9ca031e896e994424 peoplesoft.yml %} True {% else %} False {% endif %}\n\nThe error appears to have been in '/etc/ansible/peoplesoft.yml': line 117, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: write commit to history\n ^ here\n"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement