There is data on jump host that needs to be copied on all application servers in Stratos DC. Nautilus DevOps team want to perform this task using Ansible only. Perform this task using Ansible as per details mentioned below:
a. On jump host create an inventory file /home/thor/ansible/inventory and add all application servers as managed nodes.
b. On jump host create a playbook /home/thor/ansible/playbook.yml to copy /usr/src/security/index.html file to all application servers at location /opt/security.
Note: Validation will try to run playbook using command ansible-playbook -i inventory playbook.yml so please make sure playbook works this way, without passing any extra arguments.
Hi @nithyaks Apologies for delayed response, seems like it failed for you because you added a custom ansible.cfg in your working directory. However was running from from different location in validation and it wasn’t able to use your ansible.cfg hence failed.
We have made some changes there, please give it an another try.
@nithyaks Its not mandatory to run the playbook from the location where inventory file exits. However the issue is fixed now so it should work with or without a custom ansible.cfg file. I didn’t see any error for you failed task this time, did you see any error message after submitting the task ? Anyways based on your answer I marked it Success for you.
@Inderpreet@Tej-Singh-Rana
Hi Guys,
I too getting the task as failed, but i did correctly. Also it’s not showing any error messages. Please check and let me know.
Below i have attached the screenshot for reference.