J-SirL/install_manager

BUG: machine-info can be written even though it's not supposed to

J-SirL opened this issue · 1 comments

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:

  1. run: ansible-playbook -i inventory test.yml -e env=prod -e depll=wtf
  2. to check the results: do cat /etc/machine-info
  3. 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!

Fixed the issue, by removing tag and adding new extra boolean variable set_env