Top "Ansible-playbook" questions

Red Hat Ansible is a model-driven, configuration management, multi-node deployment/orchestration and remote task execution system.

password not being accepted for sudo user with ansible

I am running an ansible playbook as a sudo user (forcing the sudo password) - however, I am getting a …

ansible ansible-playbook ansible-2.x
Ansible un-vault and template a file

I have a file on my local machine that I want to upload to a remote server, it contains confidential …

templates ansible jinja2 ansible-playbook ansible-vault
Ansible multiple hosts with port forwarding

I have hosts inventory with multiple hosts each with port forwarding, Hosts file is : [all] 10.80.238.11:20003 10.80.238.11:20001 10.80.238.11:20007 10.80.238.11:20009 I am trying to ping …

python networking ansible portforwarding ansible-playbook
missing host information when running ansible playbook

I have an ansbile.cfg file as well as a host file in a directory. In the same directory, I …

ansible ansible-playbook ansible-2.x
Ansible: removing hosts

I know that one can add host with the following task: - name: Add new instance to host group add_…

ansible ansible-playbook ansible-2.x
Ansible multiple includes "in block"

I have a playbook with includes: - include: include1.yml when: doinclude | default('true') - include: include2.yml when: doinclude | …

ansible ansible-playbook ansible-2.x
Ansible lineinfile - modify a line

I'm new to Ansible and trying to modify a line in /etc/default/grub to enable auditing. I need to …

ansible ansible-playbook ansible-2.x
How to use Ansible git module pull a branch with local changes?

My git workspace is dirty, there are some local modifications. When I use command git pull origin master it works …

git ansible ansible-playbook devops
How can I setup mongo replica set with ansible?

I have two machines hosting one mongo instance each. I need them to work together as a replica set. I …

mongodb ansible database-replication ansible-playbook replicaset
Add multiple SSH keys using ansible

I have written an ansible script to remove SSH keys from remote servers: --- - name: "Add keys to the …

ssh batch-processing ssh-keys ansible ansible-playbook