when I run ansible-playbook task,
each instance results are shown with private ip.
(also I used aws dynamic inventory)
like this…
SSH password:
PLAY [all] ********************************************************************
TASK: [check tomcat status] ***************************************************
changed: [10.248.64.31]
PLAY RECAP ********************************************************************
10.248.64.31 : ok=1 changed=1 unreachable=0 failed=0
is there any solution that represent with aws tag_Name like below
SSH password:
PLAY [all] ********************************************************************
TASK: [check tomcat status] ***************************************************
changed: [webserver1]
PLAY RECAP ********************************************************************
webserver1 : ok=1 changed=1 unreachable=0 failed=0
- aws 10.248.64.31 tag key is Name and value is webserver1