Top "Ansible-playbook" questions

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

How to add user and group without a password using Ansible?

I need to add group and user without password (nologin user) using Ansible script. I execute the following command: $ansible-playbook …

ansible-playbook ansible-2.x
Prevent duplicate key warnings in Ansible 2

I use a lot of YAML anchors and references in my roles to keep the logic in a single spot …

ansible ansible-playbook ansible-2.x
Ansible - Get Facts from Remote Windows Hosts

I am using Ansible / Ansible Tower and would like to determine what facts are available on my Windows host. The …

ansible ansible-playbook ansible-facts
How to use ansible with two factor authentication?

I have enabled two factor authentication for ssh using duosecurity (using this playbook https://github.com/CoffeeAndCode/ansible-duo ). How can …

ssh ansible ansible-playbook two-factor-authentication
Getting MAC address from Ansible facts in role

I'm trying to get the MAC address for the current host so that I can use the value in a …

ansible ansible-playbook ansible-facts
Ansible: Use variable for defining playbook hosts

I have the following version installed: ansible 2.3.0 (devel 2131eaba0c) I want to specify my host variable as external variable …

ansible ansible-playbook ansible-2.x
How can I ignore failures to decrypt a vaulted file?

I have two roles, one of which has a group_vars file that is vaulted, and another that is not. …

ansible ansible-playbook ansible-vault
ansible playbook command line / Jenkins Ansible plugin / parameter NOT accepting space(s) / comma(s) for host values

Jenkins version: 2.7.4 Ansible/Playbook version: 2.1.1.0 Ansible playbook file: [ vagrant@/tmp ] $ ls -l pb.yml -rw-rw-r--. 1 vagrant vagrant 189 Nov 2 05:39 pb.yml [ …

jenkins ansible-playbook ssh-keys ansible-2.x failed-to-connect
Can ansible fetch updated facts in middle of a playbook?

I'm having trouble running a full playbook because some of the facts later plays depend on are modified in earlier …

ansible ansible-playbook selinux
Ansible best practice do not repeat common role

On the Ansible best practices page: http://docs.ansible.com/ansible/playbooks_best_practices.html#top-level-playbooks-are-separated-by-role it shows an example …

ansible roles ansible-playbook organization