Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow backticks in shell commands (#894)
```yaml - name: create rabbitmq-admin-creds creds shell: kubectl --context {{ k8s_context }} \ -n {{ namespace }} create secret generic rabbitmq-admin-creds \ --from-literal=password=`openssl rand -base64 12` \ --from-literal=cookie=`uuidgen` register: rbt_secret changed_when: rbt_secret.rc == 0 failed_when: rbt_secret.rc != 0 and 'AlreadyExists' not in rbt_secret.stderr ``` Ansible-lint did not like it: ``` [305] Use shell only when shell functionality is required roles/secrets/tasks/main.yml:29 Task/Handler: create rabbitmq-admin-creds creds ``` I switched it to a command, and it failed because the backticks were not expanded by the shell. This commit prevents 305 from being thrown if a backtick is present in the command.
- Loading branch information