[ansible-project] Re: Install Jenkins server inside Vagrant box using ansible

2017-06-22 Thread Larry Smith
I do not have specific documentation on doing the step by step installation as requested. However, I have put together a usable Jenkins installation provisioned with Ansible within a Vagrant Virtualbox environment. Would be good to learn how it is put together but maybe not. Thought I would go

[ansible-project] Problem with "Skipping: No hosts matched" when using add_host and groups

2017-06-22 Thread Alex White
Hello, I'm launching an AWS instance and setting that instances' new public IP address to a variable, and attempting to add that host to a group. Later in the same play, I use that group name in the topology.yml to remotely configure it. I successfully get the IP address from the newly

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Anfield
Ok. Thanks. Once I update the stuff.fact file then the playbook runs fine. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Brian Coca
Sorry, I should have been more specific, the copy task has nothing to do with the error, it is all about the fact gathering (setup task) that happens before it. That is what gives you the error and the problem is this file /etc/ansible/facts.d/stuff.fact, which I explained how to solve in the

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Kai Stian Olstad
On 22. juni 2017 17:15, Anfield wrote: I dont follow. Its not a file though, its a directory. Both are directories.. Brian wrote about the error messages. fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": "/etc/ansible/facts.d/stuff.fact", "failed": true, "msg": "[Errno 8] Exec format

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Anfield
The src directory is executable > > >> -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group,

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Anfield
I dont follow. Its not a file though, its a directory. Both are directories.. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Brian Coca
file is executable, fact gathering will try to execute, but it does not seem to be a proper executable. a) fix file permissions (assuming its JSON data) b) fix file to execute properly -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible

[ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Anfield
Resolved this when I set gather_facts: no. Anyone know why that would be? ansible 2.3.0.0 > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [ansible-project] expected sudo prompt

2017-06-22 Thread Brian Coca
Ansible uses `sudo -p` to set the prompt it gets, so it always matches. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[ansible-project] Ansible 2.3.1 adding 'rounds=65600' to password in /etc/shadow

2017-06-22 Thread Johannes Kastl
Hi everyone, I just ran into a timeout when executing my unchanged playbook against my raspi (raspi2 with debian), that I had not run on this host since ansible 2.2 at least. It seems ansible (or the python hash library or whoever) is adding a rounds=656000 to the password in /etc/shadow, which

[ansible-project] Re: AWS profile not found

2017-06-22 Thread B Holmes
Fixed. Had become: True in my build.yml so it was looking for root's credentials file /root/.aws/credentials On Thursday, June 22, 2017 at 11:43:02 AM UTC+1, B Holmes wrote: > > Hi, > > I'm having trouble authenticating to AWS using a profile. My > ~/.aws/credentials file has a profile named

[ansible-project] AWS profile not found

2017-06-22 Thread B Holmes
Hi, I'm having trouble authenticating to AWS using a profile. My ~/.aws/credentials file has a profile named production: [default] aws_access_key_id = aws_secret_access_key = region = eu-west-1 [production] aws_access_key_id = aws_secret_access_key = region = eu-west-1 Boto can see it:

[ansible-project] Ansible ACI Modules

2017-06-22 Thread Rod Oliver
Hi All, I'm aware of modules for ACI on Github (https://github.com/jedelman8/aci-ansible), however they haven't seen a lot of updates in the last while. Is anyone using them who might be prepared to chat about their experiences? Rod -- You received this message because you are subscribed

[ansible-project] Ansible docker_container task cannot start a container while the equivalent docker run command can

2017-06-22 Thread ishan jain
I am using docker_container module on my infra quite extensively for some time and now i am stuck at a problem for which i cannot figure out the reason. One point to note here is that for the following chances, there is lesses probability of messing up somewhere else, like in the whole script,

Re: [ansible-project] Ansible 2.3.0 Connecting to Cisco IOS router

2017-06-22 Thread Kai Stian Olstad
On 20.06.2017 01:26, Patrick Matheny wrote: I'm very new to Ansible. I have a small lab running and I'm trying to evaluate the use of Ansible for making network changes. I have a workstations running CentOS Linux release 7.3.1611 and Ansible 2.3.0 as a fresh install. I'm using a cisco 819

Re: [ansible-project] Have Ansible remote API?

2017-06-22 Thread Kai Stian Olstad
On 21.06.2017 16:37, Владислав Мещеряков wrote: I have ansible server and a few target machines. I want to run ansible playbooks from target machine instead ansible server. Is there way to resolve my wish? Check out ansible-pull. -- Kai Stian Olstad -- You received this message because you

Re: [ansible-project] using ansible with spawn is preventing the inventory process

2017-06-22 Thread Kai Stian Olstad
On 22.06.2017 00:21, Oğuz Yarımtepe wrote: Great tip. Here is my folder structure: group_vars/all some_playbook/playbook.yml inventory_file $ ansible-playbook -i inventory_file some_playbook/playbook.yml --become-user root --become-method sudo --become If you are logging in as root you

Re: [ansible-project] Play the playbook unprivileged user

2017-06-22 Thread Madhu
How are you calling the playbook? Sent from my iPhone > On Jun 21, 2017, at 12:01 AM, m.hipp...@gmail.com wrote: > > Hello! I need to play the playbook unprivileged user. The user is not allowed > to use bin/sh and usr/bin/python. How to solve this? Help me please! > -- > You received this

Re: [ansible-project] expected sudo prompt

2017-06-22 Thread Madhu
You have to use ansible_sudo_pass keyword to set the sudo password. Sent from my iPhone > On Jun 19, 2017, at 7:01 PM, reapsowrep...@gmail.com wrote: > > Hi, > > I hit a snag using "become/sudo". I can become/sudo to the root user if the > prompt that is returned is as expected (I think). For