[ansible-project] Configure isolated servers without Internet access

2016-08-11 Thread David Li
Hi, I am relatively new to Ansible. I need to use Ansible from a dev laptop to set up some servers (both Ubuntu and Centos) that are isolated without any Internet access. The laptop has Internet access for development and it can ssh into these servers. I wonder what's the best practice in

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-08-11 Thread Peter Sprygada
Thats really strange... I just rebuilt an Ansible env using the latest from source and everything works fine. https://gist.github.com/privateip/88b68576d7c0dd8d8e566ce3ec75e4a8 Will try to look at exactly which commit the asa_* modules showed up in the submodule a bit later but it definitely is

Re: [ansible-project] Re: Can't find boto for ansible EC2 module

2016-08-11 Thread Troy Cauble
I found the solution elsewhere you can set this via -e -e 'ansible_python_interpreter="/usr/bin/env python"' On Thursday, August 11, 2016 at 3:34:18 PM UTC-4, Troy Cauble wrote: > > What can I do if I'm not using an inventory file? I'm exec-ing from a > script with "ansible-playbook -i ,

Re: [ansible-project] Re: Can't find boto for ansible EC2 module

2016-08-11 Thread Troy Cauble
What can I do if I'm not using an inventory file? I'm exec-ing from a script with "ansible-playbook -i , ...". Also, the ansible and ansible-playbook scripts in my_virtualenv_dir/bin start with #!/my_virtualenv_dir/bin/python2 So they're using the right python to start... -- You received

Re: [ansible-project] Running Python script, running into /usr/bin/env: No such file or directory

2016-08-11 Thread Kai Stian Olstad
On 11. aug. 2016 20:00, SC wrote: Thanks for the reply Kai! I took a look at the /etc/default/login file on the Solaris box and it looks like the PATH lines are commented out: # PATH sets the initial shell PATH variable # #PATH=/usr/bin: # SUPATH sets the initial shell PATH variable for root #

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-08-11 Thread jean-christophe manciot
@Tony Reveal @ Peter Sprygada Tony is right, I've just tried the asa_command and experienced the same issue: TASK [asa_pull_config : Fetching config from the remote node] ** fatal: [172.21.100.252]: FAILED! => {"failed": true, "msg": "Could not find imported module support

[ansible-project] Re: Windows Playbook Fails Using win_user

2016-08-11 Thread Anfield
That was perfect. Thanks! -- 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, send email to

[ansible-project] Re: Windows Playbook Fails Using win_user

2016-08-11 Thread Matt Davis
Unless it's just Google Groups eating the formatting, it looks like your YAML indentation is hosed up (Ansible's failing on the control side, not on the Windows module). YAML is whitespace-sensitive, so it should look like: - name: Add a user hosts: all gather_facts: false tasks: -

[ansible-project] assign custom host name to ec2 instances

2016-08-11 Thread eric_skaggs
When deploying an autoscaling group I want to be able to add custom hostnames to the instances for both initial deploy and scaling up and down. hostnames would be something like app-server01 app-server02. Then when we scale up it would increment 03/04/etc. Thanks, Eric -- This email

[ansible-project] Behavior change related to roles_path config with relative include

2016-08-11 Thread Julien Tognazzi
Hi list, I upgraded ansible with the latest epel-testing version ansible-2.1.1.0-1.el7.noarch and noticed a change with the roles_path configuration. This is my roles_path: roles_path= /etc/ansible/roles:../base/roles:./roles So I expect that if I run a playbook from

[ansible-project] Re: azure_rm_deployment error ansible 2.1.1.0 __init__() takes exactly 1 argument (2 given)

2016-08-11 Thread M Ghaleb
Hi Trond, thank you for your reply, it turns out to be the msrest, we were using 0.4.0 and it only works with 0.4.1. I've updated it and it works now fine. BR On Wednesday, August 10, 2016 at 3:46:07 AM UTC+3, Trond Hindenes wrote: > > Could you please share an example playbook? We're using

Re: [ansible-project] Running Python script, running into /usr/bin/env: No such file or directory

2016-08-11 Thread Kai Stian Olstad
On 11. aug. 2016 09:14, SC wrote: Do you know if it's possible to add to the PATH in Ansible's non-interactive run somehow? I do have a ghetto workaround where I check the ansible_distribution and make a conditional in the playbook to point to a different script depending on the distro but it's

Re: [ansible-project] Importing Python Custom Modules for Ansible to run?

2016-08-11 Thread Kai Stian Olstad
On 11. aug. 2016 09:26, SC wrote: Probably a silly question, but is it possible to refer to another Python file with the script module? No, it has limited functionality. For example, if I have abc.py and 123.py, if I import 123.py into the abc.py python script (if I need some functions or

[ansible-project] Importing Python Custom Modules for Ansible to run?

2016-08-11 Thread SC
Probably a silly question, but is it possible to refer to another Python file with the script module? For example, if I have abc.py and 123.py, if I import 123.py into the abc.py python script (if I need some functions or whatever), both of these files are not copied when I call the script

Re: [ansible-project] Running Python script, running into /usr/bin/env: No such file or directory

2016-08-11 Thread SC
Really appreciate your reply, it's very informative. I'm still not so familiar with Ansible so it's good to get someone else's take. I put that debug line into the Playbook and got the following output: Non-Solaris "ansible_env": { "CVS_RSH": "ssh", "G_BROKEN_FILENAMES": "1",

[ansible-project] Feature Request for the package module yum

2016-08-11 Thread Jörg Kastning
Good morning, I'd like to request a feature for the core module yum. I would like to specify advisory which should be installed. This would be the functionallity of --advisory=RHSA-: from the local tool. Kind regards, Joerg -- You received this message because you are subscribed to