Error in playbook using register:...

7 views
Skip to first unread message

Neil Moorthy

unread,
Nov 23, 2015, 1:04:40 PM11/23/15
to Ansible Project
Hello,

I have the following relatively simple playbook. It works as expected when I don't include the "register: inv_result" entry...

---
- hosts: localhost
  gather_facts: False
  tasks:
    - script: "./refreshinventory.sh"
      register: inv_result

...however with the register line added I get the following error:


ERROR: multiple actions specified in task: 'script' and 'register inv_result'


...it is as if it does not recognise the 'register' keyword. Could you please let me know if I am doing something wrong or what the issue might be.


Cheers
Neil
Reply all
Reply to author
Forward
0 new messages