Hi Racuna,
I created a project named test_rundeck and added source by using ec2 plugin.
in my node area, i got two nodes(by using private ip filtering. for ex:10.10.10.11,10.10.10.12).
In my aws testmachine, I have ansible script into testproject folder. There I have the below files.
- hosts
- group_vars/all.yml
- main.yml
In the host file I put only one node.(private ip. this node is same as one of the node what I get by ec2 plugin in rundeck. for ex:10.10.10.11)
Afterthat I created a job into test_rundeck name test_job.
This job step is ansible workflow node step. Here I mentioned main.yml path. And passed extra-argument as -i /etc/ansible/tetsproject/host.
But I got the below Error.
Here my doubt is, is it possible to get the nodes from ec2 plugin and run ansible script.? If yes, how can I?
In other words, I don't want to use my ansible inventory hosts But run the ansible main.yml script(need group_vars/all.yml). I wants to use the inventory as source nodes(What I got from rundeck aws ec2 plugin) in rundeck.
| 17:48:49 | Skava-Internal-Golden-AMI-test-3 | 1. test_job |
|
| 17:48:49 | | | [WARNING]: Unable to parse /etc/ansible/hosts as an inventory source |
| 17:48:49 | | | [WARNING]: No inventory was parsed, only implicit localhost is available |
| 17:48:49 | | | [WARNING]: provided hosts list is empty, only localhost is available. Note |
| 17:48:49 | | | that the implicit localhost does not match 'all' |
| 17:48:49 | | | [WARNING]: Could not match supplied host pattern, ignoring: Internal- |
| 17:48:49 | | | Golden-AMI-test-3 |
| 17:48:50 | | |
|
| 17:48:50 | | | PLAY [calling setups] ********************************************************** |
| 17:48:50 | | | skipping: no hosts matched |
| 17:48:50 | | |
|
| 17:48:50 | | | PLAY RECAP ********************************************************************* |
| 17:48:50 | | |
|
| 17:48:50 | | | Tuesday 11 December 2018 12:18:50 +0000 (0:00:00.114) 0:00:00.114 ****** |
| 17:48:50 | | | =============================================================================== |
| 17:48:50 | | | Playbook run took 0 days, 0 hours, 0 minutes, 0 seconds |
Thanks & Regards,
G.Vasantha Kumar
Mobile : 86950 09298