Questions tagged [ansible-playbook]
468 questions
-2
votes
1 answer
ansible: using host_vars in template file
Unix: server1:
I have a structure for my var hosts like this:
>ls hosts/
test_servers
uat_servers
>more test_servers
server1
server2
server3
>ls host_vars/
server1.yml
server2.yml
server3.yml
>more server1.yml
envs: [
{ type: "dev",
list_vars: [
{…

avsun
- 1
- 2
-2
votes
1 answer
How to write Ansible playbook to commit and push my new updates on gitlab repository
How to write Ansible playbook to commit and push a gitlab repository?
I have Ansible tower template to launch my playbook, then playbook must do commit and push on different git repo. This git repo on successful push will trigger jenkins pipeline.

Aniket
- 1
-8
votes
1 answer
I have 50 servers. Want to update /etc/hosts file using ansible
I would like to update /etc/hosts file using ansible playbook to all my 50 servers.

KKE
- 135
- 1
- 4
- 11