[ansible-project] Dis-associate Elastic IP address.....?

2016-02-25 Thread Slim Slam
I know the following things about a running EC2 instance: 1. Elastic IP address 2. region 3. VPC 4. subnet What's the simplest way to Disassociate the Elastic IP address from the instance? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

Re: [ansible-project] Best scalable approach to bootstrapping an EC2 server from within AWS Cloudformation?

2016-02-25 Thread KeithA
Cool, so I feel like I'm on the right track! I was thinking of doing it similarly. Thank you for replying so quickly. On Thursday, February 25, 2016 at 8:05:31 PM UTC-8, Stephen Granger wrote: > > 1. Use metadata & cloud-init in Cloudformation to run bash scripts directly > > 3. Install

Re: [ansible-project] Best scalable approach to bootstrapping an EC2 server from within AWS Cloudformation?

2016-02-25 Thread Stephen Granger
1. Use metadata & cloud-init in Cloudformation to run bash scripts directly 3. Install packages, Ansible, copy playbooks from a private repo, and run playbooks locally 4. Install packages, Ansible, and use 'ansible-pull' I get the lc user data script to install ansible, pull from an s3 bucket

Re: [ansible-project] Best scalable approach to bootstrapping an EC2 server from within AWS Cloudformation?

2016-02-25 Thread KeithA
How are you implementing these? I was thinking of taking advantage of AWS's Lifecycle Hooks to trigger a Lambda function to have Ansible run playbooks on the pending server but I think that may be a little

[ansible-project] Re: Ansible managing Windows hosts with non admin user

2016-02-25 Thread Julian Saunders
I was using the win_ping module. I will try the raw module as suggested. I will also play around with "allow on Execute Methods and Remote enable" once I work out what and where they are set. Thanks guys. I will report back soon. -- You received this message because you are subscribed to

[ansible-project] Updated ansible to track latest, now I have error 'Connection' object has no attribute '_split_ssh_args'

2016-02-25 Thread Joanna Delaporte
I just git pulled the latest build from GitHub, and then ran the following two commands as recommended on the Installation page: $ git pull --rebase $ git submodule update --init --recursive However, I am now getting an exception that the 'Connection' object has no attribute '_split_ssh_args'

Re: [ansible-project] force --check

2016-02-25 Thread Mike Biancaniello
That might be what I'm looking for, but I'm not sure. I want to be able to run a playbook (*not* in check_mode), but tell one task to run *only* in check_mode. Currently, if you run in check_mode, setting `always_run: true` on a task makes that task run as if it is not in check_mode. I want

[ansible-project] Using when conditional with set_facts and with_items

2016-02-25 Thread Jason Malobicky
Hello, Using ansible v1.9.4, I am having an issue using set_facts if combining with_items and when conditional. I am tackling a new use case for our environment and have not tested with this any other version, since 1.9.4 is the production version. When 'when' is not used, the 'all_files'

Re: [ansible-project] Best scalable approach to bootstrapping an EC2 server from within AWS Cloudformation?

2016-02-25 Thread Stephen Granger
I've been implementing a bit of 1, 3, 4 to bring up ASG instances. I, like many people dislike having unnecessary software on my hosts (instances) so thought this could be another way to carry out the same process - Running Ansible from AWS Lambda

[ansible-project] TASK [include] debug information

2016-02-25 Thread Michael Gauthier
Hi, In Ansible 2.0 running a playbook outputs TASK [include] with a filename for each included file. Is that debug information going to stay as a feature for the foreseeable future? I think it's a good feature and if it's indended to stay it will let me delete some manually maintained debug

Re: [ansible-project] How to use --extra-vars option to pass host variables in ansible-playbook

2016-02-25 Thread Brian Coca
host_vars do not need to be passed, they are picked up automatically, you would be 'double passing them' by adding them to the command line. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

[ansible-project] can not find my role zavalit/ansible-role-docker

2016-02-25 Thread 'seva dolgopolov' via Ansible Project
Hi, binded my role over github: but can not find it trough ansible-galaxy at all. -- You received this message because you are subscribed to the

Re: [ansible-project] The new Python API is extremely complex.

2016-02-25 Thread Mike Biancaniello
interesting. My hybrid (custom) lookup_plugin: def run(self, terms='', **kwargs): '''Normalize terms and args and perform lookup. Args: terms (Optional[str,list]): Comma-delimited string (or python list) of terms. kwargs (**dict): See ``Store()`` object

[ansible-project] ansible noob trying to ping hosts in hosts file

2016-02-25 Thread markpattisondev
Hi there. I just installed ansible on ubuntu 15 and am going through the getting started documentation found here: http://docs.ansible.com/ansible/intro_getting_started.html I've added two servers to my hosts file... but when I try to ping them using ansible, it fails because the system is

[ansible-project] How to use --extra-vars option to pass host variables in ansible-playbook

2016-02-25 Thread DINESH S
We have an requirement to pass the host variables defined in a file under host_vars directory as an argument to the ansible playbook. So we have planned to use *--extra-vars *option to pass additional variables as key value pair. But we couldn't able to pass the host variables as argument and

[ansible-project] Galaxy - Install Role from Subdirectory of Github Repo

2016-02-25 Thread Nick Allen
I have a Github repository that contains multiple roles, each in separate subdirectories. For example, I have separate roles 'role-alpha' and 'role-beta' in a repo at https://github.com/whoami/project.git each located in subdirectories as follows. - provisioning/roles/role-alpha -

Re: [ansible-project] OS variables variance

2016-02-25 Thread Pierre Bazoge
Adding "gather_facts: true" in my playbook fixed the "No source file given" error. On Monday, July 14, 2014 at 9:24:17 AM UTC+2, Leibo wrote: > > Hi, > > trying *include_vars* I encounter an issue > > Trying this inside a role task: > > - include_vars: "{{item}}" > with_first_found: > -

Re: [ansible-project] The new Python API is extremely complex.

2016-02-25 Thread Dag Wieers
On Thu, 25 Feb 2016, Mike Biancaniello wrote: I have done similar things to enable my plugins for v1 AND v2. Essentially: from ansible import __version__ as ANSIBLE_VERSION if ANSIBLE_VERSION.startswith('2'): else: More recently, I am encouraging everyone to upgrade to v2 and trying to

Re: [ansible-project] The new Python API is extremely complex.

2016-02-25 Thread Mike Biancaniello
I have done similar things to enable my plugins for v1 AND v2. Essentially: from ansible import __version__ as ANSIBLE_VERSION if ANSIBLE_VERSION.startswith('2'): else: More recently, I am encouraging everyone to upgrade to v2 and trying to remove the v1 support esp as some things that

[ansible-project] Re: win_regedit; binary data

2016-02-25 Thread 'J Hawkesworth' via Ansible Project
To follow up, it appears you need to convert the incoming data to a byte array. I have some prototype code that can do this and will tidy up the code and create a pull request to add this when I get the chance. If anyone else hits this before the PR is available let me know and I'll send you

[ansible-project] Re: Galaxy Maintenance Window 2/25 7:30AM EST

2016-02-25 Thread Chris Houseknecht
And... we're back. Maintenance completed and Galaxy is up without any issues. --Chris On Thursday, February 25, 2016 at 7:29:27 AM UTC-5, Chris Houseknecht wrote: > > Starting network maintenance... > > On Tuesday, February 23, 2016 at 12:50:14 PM UTC-5, Chris Houseknecht > wrote: >> >> We

[ansible-project] Re: Galaxy Maintenance Window 2/25 7:30AM EST

2016-02-25 Thread Chris Houseknecht
Starting network maintenance... On Tuesday, February 23, 2016 at 12:50:14 PM UTC-5, Chris Houseknecht wrote: > > We will be performing some network maintenance on Galaxy > this Thursday 2/25 starting at 7:30AM EST > and ending at 8:00AM EST. We will do our best to

[ansible-project] How to set ulimit -n 10240 for the current session in ansible

2016-02-25 Thread Deepa Yr
Hi Before installing my product using command module, I need to set ulimit -n 10240. I tried running - name: Install product command: "{{ item }}" with_items: - "ulimit -n 10240" - "setup -r responsefile" When I run this way, I get "module_name": "command"}, "item":

[ansible-project] win_regedit; binary data

2016-02-25 Thread 'J Hawkesworth' via Ansible Project
Hi, Does anyone have an example of using win_regedit to set binary data? I have a hex encoded string from a reg export but so far not found a way to convert it to whatever powershell needs. Many thanks, Jon -- You received this message because you are subscribed to the Google Groups

[ansible-project] Re: Windows File Difference

2016-02-25 Thread 'J Hawkesworth' via Ansible Project
Hi Sorry, probably didn't explain myself very well and what I was proposing was probably pretty fragile. You'd have to set up a directory of reference files that you want to compare to, and another of candidate files. Then you'd need a playbook to use fetch to pull the candidate files back