Replies: 1 comment
-
What version of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a role called king_install. In the king_install directory of the role, I have a vars folder with a main.yml file. main.yml, has one line,
king_install_user: ansible_user
I use this variable to populate a file with ansible.builtin.copy and a content: directive as such
export USER={{ king_install_user }}
The playbook works as intended. However when I run ansible-lint to check my syntax, I get the 'error' var-naming[no-role-prefix'. I have no idea how to resolve this. I have renamed the variable with the king_install_ prefix so I am not sure what it is flagging. Can someone help?
Beta Was this translation helpful? Give feedback.
All reactions