Top "Ansible-2.x" questions

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy.

Using chown command in ansible?

I have a command in ubuntu as sudo chown $(id -u):$(id -g) $HOME/.kube/config I want to convert …

ansible ansible-2.x chown
How to use Ansible wait_for to check a command status with multiple lines?

Ansible v2.4.0.0 I'm installing Gitlab-CE where I run the following in an Ansible task. As you can see, some of …

ansible ansible-2.x
Amazon Linux machine - Ansible ansible_distribution* variables major release distribution

I'm using Ansible: 2.2.0.0 I have 3 machines: Two vagrant boxes (one CentOS 7.x and one Ubuntu 14.04) and 3rd box is an …

amazon-web-services amazon-ec2 yum ansible-2.x ansible-facts
How to Play with particular group using Ansible Playbook

Ansible version: 2.1.0 My ansible hosts file is: [PM] xyz.example.com ansible_connection=ssh [ND] pqr.example.com ansible_connection=…

ansible ansible-2.x ansible-inventory
Concatenate strings using with_items and assign to a variable in Ansible

I need to save two 2 IPs to a variable in a vars_file when launching ec2_instances, which are used …

ansible ansible-2.x ansible-inventory 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
Ansible delegate_to how to set user that is used to connect to target?

I have an Ansible (2.1.1.) inventory: build_machine ansible_host=localhost ansible_connection=local staging_machine ansible_host=my.staging.host …

ansible ansible-2.x
Ansible register variable in task and use it in template

In the Ansible task, how to register a variable so I can use it as check statement in Template. The …

ansible jinja2 ansible-2.x ansible-template
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 deploy public SSH key asking password only once?

I wonder how to copy my SSH public key to many hosts using Ansible. First attempt: ansible all -i inventory …

ansible ssh-keys ansible-2.x