Questions tagged [ansible]

Ansible is an open-source software platform for configuring and managing computers. It combines multi-node software deployment, ad-hoc task execution, and configuration management.

Ansible is an open-source software platform for configuring and managing computers. It combines multi-node software deployment, ad-hoc task execution, and configuration management. It manages nodes over SSH and does not require any additional remote software to be installed on them. Modules work over JSON and standard output and can be written in any programming language. The system uses YAML to express reusable descriptions of systems.

The platform was created by Michael DeHaan, the author of the provisioning server application Cobbler and co-author of the Func framework for remote administration. It is included as part of the Fedora distribution of Linux, owned by Red Hat inc., and is also available for Red Hat Enterprise Linux, CentOS and Scientific Linux via Extra Packages for Enterprise Linux (EPEL) as well as other operating systems. Ansible was commercially supported and sponsored by AnsibleWorks. Since October 2015 Ansible is owned by RedHat.

It was named by DeHaan after the fictional instantaneous hyperspace communication system featured in Orson Scott Card's Ender's Game.

1762 questions
0
votes
1 answer

Ansible, Vagrant, sudo and ssh-agent

So I've seen this question and added the Defaults env_keep+=SSH_AUTH_SOCK into my /etc/sudoers file but I am still unable to clone from github on my Vagrant box using sudo: true and sudo_user: in my ansible playbook. I'd like to clone the…
MattC
  • 377
  • 1
  • 4
  • 11
0
votes
1 answer

Change variable of which users to create based on group in Ansible

I have the following task - name: Create users user: uid: "{{ item.uid }}" name: "{{ item.username }}" comment: "{{ item.comment }}" shell: /bin/bash groups: "{{ item.groups }}" with_items: users users contains all the users…
Dax
  • 294
  • 2
  • 11
0
votes
2 answers

Azure, internet facing load balancer without using cloud services

Is it possible to have load balancing between virtual machines without placing the machines in the same cloud service? We want to use Ansible to configure our machines and setup RabbitMQ but I can't see how it could be done without having an public…
olif
  • 165
  • 6
0
votes
1 answer

Pass hosts from master playbook to included playbook

How can I pass the hosts from a master playbook to an included playbook? I'm trying to create a master playbook for a type of server (e.g., a web server) which shares some common playbooks with other types of servers (e.g., gateway server, database…
Uyghur Lives Matter
  • 226
  • 1
  • 4
  • 15
0
votes
2 answers

Cannot put application back into ELB: Instance has not passed the configured HealthyThreshold number of health checks consecutively

Putting the EC2 instance back into the ELB used to work 90% of the time. Unfortunately lately the deployment regulary fails with the next error: 15:51:59 TASK: [Start the app] ********************************************************* 15:51:59…
ujjain
  • 3,983
  • 16
  • 53
  • 91
0
votes
1 answer

Ansible ad-hoc bracket expansion

Is it possible to use bracket expansion in an ad-hoc command? I'm trying to do: ansible web3 -m shell -a "sudo gzip /var/opt/tomcat/logs/appname.log.2015-05-2{4..7}" -K But it's being interpreted as a string. Is this a situation where I might need…
0
votes
2 answers

setting up asg with Ansible and not able to use ec2.py for inventory

I have created local configuration and Amazon Auto-scaling group. By using this code. --- - local_action: image_id: ami-61f9324 instance_type: t2.micro module: ec2_lc name: nice-lc region: us-west-2 security_groups:…
Vaibhav Mule
  • 103
  • 5
0
votes
1 answer

rename VMware vCenter guest name via Ansible

I'm trying to find a way to rename guest vm name (not the OS ) in vsphere (vcenter Env). I've managed to create a VM using the vsphere_guest module but I cant find a way to rename the guest VM the issue or play is like this I create some VM and…
0
votes
2 answers

ansible tower reports : stdout capture is missing

How to fix the error of stdout capture being missing. I am scheduling couple of tasks, initially they are running fine after couple of iteration it is throwing this error.
Naveen Vijay
  • 390
  • 6
  • 18
0
votes
1 answer

How should I check an existing system value with Ansible?

I have an Ansible task where I set the version of Ruby used globally on my system. - name: Set Ruby global version shell: /usr/local/bin/rbenv global 2.2.1 The problem is that this task always has the status of changed. I want it to show changed…
Dean
  • 143
  • 1
  • 1
  • 6
0
votes
1 answer

Stuck on gathering facts

I'm trying to run an Ansible playbook, but it seems to be freezing on 'Gathering facts'. This is the output: GATHERING FACTS *************************************************************** <127.0.0.1> ESTABLISH CONNECTION FOR USER:…
Rolf
  • 103
  • 1
  • 2
0
votes
2 answers

Automatic retrieval of current mapping debian stable -> released name

I'm automating my customary debian setup using ansible. The playbook is supposed to treat testing/unstable and stable differently: the former are to be maintained "clean", while the latte is to receive kernel etc. from Backports. As there's now…
balin
  • 123
  • 1
  • 5
0
votes
1 answer

Ansible failing on condition check for role. What is a proper one?

I'm trying to do an advanced version of your script where ansible running a role basing on a result of "when" condition. In my scenario ansible connects as root, creates ansible_bot user, grants him privilegies and denies access to root. It all…
user76667
  • 41
  • 5
0
votes
2 answers

Hudson GUI cannot run a job with same command that runs fine from the shell

I get this error while trying to run a job in hudson here is the log Started by user anonymous [workspace] $ /bin/bash -x /tmp/hudson3189813701500418318.sh + date Thu Feb 19 17:02:03 EST 2015 + fab -f /FABRIC/FABFILESv1/deploy_ansiblev1.py -H…
grant tailor
  • 505
  • 2
  • 6
  • 13
0
votes
1 answer

Using an Ansible Do-Until loop to manage outdated directories

I have a directory that will have a series of subdirectories added to it, and I want to maintain only the most recent 5. Here are the two tasks that I think should accomplish this: - name: Get directory listing shell: ls -tr1 chdir={{…
Zach Smith
  • 1
  • 1
  • 1