BUG: machine-info can be written even though it's not supposed to
J-SirL opened this issue · 1 comments
J-SirL commented
machine-info can be written even though your not supposed to
error is in set_deployment.yml and TASK: SET_DEPLOYMENT | Set Deployment Variable
To Reproduce
Steps to reproduce the behavior:
- run: ansible-playbook -i inventory test.yml -e env=prod -e depll=wtf
- to check the results: do cat /etc/machine-info
- Output of /etc/machine-info is: DEPLOYMENT=wtf
Expected behavior
No changes to /etc/machine-info
Additional context
I am currently looking into the variable and tag check to make sure this cannot happen again!
J-SirL commented
Fixed the issue, by removing tag and adding new extra boolean variable set_env