80727/how-to-import-files-in-ansible-playbook
Hi Guys,
I have one Ansible-Playbook. But in this playbook, I have to use a username and password. For security reasons, I want to import a password from another file. How can I do that in Ansible?
Hi@akhtar,
You can use vars_files keyword in Ansible. This is used to import multiple files in Ansible Playbook as shown below.
- hosts: localhost vars_files: - var.yml
Now you can use the data of this file in your playbook.
Add both your static and dynamic inventories ...READ MORE
Hey @Nishant, you can use the copy ...READ MORE
Have a look at this, it might ...READ MORE
Hi@akhtar, Variable in playbooks are very similar to using variables in ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
Hi@akhtar, You need to use the copy module ...READ MORE
Hi@akhtar, You can find one argument in the ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.