Hi All,

I am declaring an environment variables in a playbook as shown below:
--
---
- hosts: localhost
  environment:
    script_var1: hi
    script_var2: there
  tasks:
    - name: List
      shell: bash test.sh
-- 

I want to test the existence of the above environment variables in a 
separate  task.yml file. How do I test their existence ? What is the syntax 
?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1e7a8869-6360-4396-95e6-cd6f078dcd24n%40googlegroups.com.

Reply via email to