Top "Ansible" questions

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

Creating a new user and password with Ansible

I have an ansible task which creates a new user on ubuntu 12.04; - name: Add deployment user action: user name=…

bash shell ubuntu ansible
How to switch a user per task or set of tasks?

A recurring theme that's in my ansible playbooks is that I often must execute a command with sudo privileges (sudo: …

ansible
How to run a task when variable is undefined in ansible?

I am looking for a way to perform a task when ansible variable is not registers /undefined e.g -- …

ansible ansible-playbook
How to pass a user / password in ansible command

I want to use Ansible as part of another Python software. in that software I have a hosts list with …

ssh ansible ansible-ad-hoc
How to get the host name of the current machine as defined in the Ansible hosts file?

I'm setting up an Ansible playbook to set up a couple servers. There are a couple of tasks that I …

ansible
How to execute a shell script on a remote server using Ansible?

I am planning to execute a shell script on a remote server using Ansible playbook. blank test.sh file: touch …

shell ansible remote-server
How do I get logs/details of ansible-playbook module executions?

Say I execute the following. $ cat test.sh #!/bin/bash echo Hello World exit 0 $ cat Hello.yml --- - hosts: …

logging ansible
Ansible: copy a directory content to another directory

I am trying to copy the content of dist directory to nginx directory. - name: copy html file copy: src=/…

ansible ansible-2.x
Ansible: Store command's stdout in new variable?

Inside my playbook I'd like to create a variable holding the output of an external command. Afterwards I want to …

ansible ansible-playbook
How to set host_key_checking=false in ansible inventory file?

I would like to use ansible-playbook command instead of 'vagrant provision'. However setting host_key_checking=false in the hosts …

ansible