We are new in ansible. i have created the some basic playbook and it working fine.
i have three query about this.
How to pass the argument while running the playbook
example- Suppose i have created playbook to check the file system utilization. i want to pass the value from command prompt to check the file system status.
This is again when we run the play book and ask the user to input the filesystem and check the status?
how to display the out put of playbook as user understandable format. i.e if we write to check the file ageing and want to display which file age is greater than 3day?
1 - You can set extra vars on a job template run. You can also prompt for the user to provide these when the template is launched. Also see surveys.
2 - I don’t think I understand the question?
3 - AWX displays the same output as Ansible. If you need to abstract the playbook execution away from your users then you can look at our notification system or build an interface that can consume the AWX api to boil down what the user needs to see.