I have a problem passing a variable between playbooks that are chained together. Any thoughts?
Playbook - audit_hardware_inventory.yml --- - name: "Compare API to actual" hosts: "all" gather_facts: "no" connection: "local" tasks: - name: "INCLUDE TASK: GET JSON WEB TOKEN FROM API" include_tasks: "generate_api_data.yml" - name: "INCLUDE TASK: HARDWARE CHECK" include_tasks: "hardware_check_tasks.yml" Playbook - generate_api_data.yml --- - name: "Get JSON DATA" uri: url: "http://localhost.com/v1/id/xxxxx" method: "POST" return_content: "yes" validate_certs: "no" body_format: "json" delegate_to: "localhost" register: "api_data" The first task pulls the data from the api and registers it as "api_data" however when the second playbook ("hardware_check_tasks.yml") I'm not able to call that variable. How do I pass "api_data" between tasks? Thanks -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4cfab90c-2c36-4a5b-aa7d-75de0681f9e8%40googlegroups.com.