[ansible-project] Private Key path for ec2_lc module under userdata field

2016-05-11 Thread Bhotu
I am trying to create new instance with ec2_lc module in ansible. At the time of bootstraping, I want to install some configurations. Those configurations come from the public github file, its basically the ansible playbook. But I need to mention the path for the private key file under "hosts".

[ansible-project] Ansible Tower SCM Credentials for Enterprise Github account

2016-03-14 Thread Bhotu
I am using github repository for my project in Ansible Tower. Main purpose to use Ansible tower is to run the repository automatically when someone commits any changes to the github file. I am using AWS cluster as an inventory. I have done it manually. Currently, what should I mention in SCM cr

Re: [ansible-project] Cloudformation module does not read the template file with .json extension

2016-02-01 Thread Bhotu
Perfect. Now its done it successfully. Thanks for your help. Really appreciate... On Monday, 1 February 2016 14:59:16 UTC-8, Brian Coca wrote: > > if you export them on the remote machine, you won't have them on the local > one > > boto is a required library for the module and MUST be prese

Re: [ansible-project] Cloudformation module does not read the template file with .json extension

2016-02-01 Thread Bhotu
Yes. I have exported the environment variable AWS_ACCESS_KEY and AWS_SECRET_ACCESS_KEY for my remote AWS machine. Earlier it was "boto" error. Now it is showing the credential error. What could be the possible problem ? On Monday, 1 February 2016 14:15:24 UTC-8, Brian Coca wrote: > > That seem

Re: [ansible-project] Cloudformation module does not read the template file with .json extension

2016-02-01 Thread Bhotu
Here I have modified. Now getting some other error. --- - name: Create Cloudformation Template for Cassandra Servers hosts: awsserver sudo: yes gather_facts: no tasks: - name: Cloudformation | Use the module cloudformation local_action: module: cloudformation

Re: [ansible-project] Cloudformation module does not read the template file with .json extension

2016-02-01 Thread Bhotu
Here I have modified. Now getting some other error. --- - name: Create Cloudformation Template for Cassandra Servers hosts: awsserver sudo: yes gather_facts: no tasks: - name: Cloudformation | Use the module cloudformation local_action: module: cloudformation

Re: [ansible-project] Cloudformation module does not read the template file with .json extension

2016-02-01 Thread Bhotu
Coca wrote: > > you did not respond the other 1/2 of the question, is the file on the > machine you are executing ansible on or on the 'target'? > > > On Mon, Feb 1, 2016 at 3:52 PM, Bhotu > > wrote: > > Hi Brian, > > > > I have trie

Re: [ansible-project] Cloudformation module does not read the template file with .json extension

2016-02-01 Thread Bhotu
espond the other 1/2 of the question, is the file on the > machine you are executing ansible on or on the 'target'? > > > On Mon, Feb 1, 2016 at 3:52 PM, Bhotu > > wrote: > > Hi Brian, > > > > I have tried the "cassandra.json" fil

Re: [ansible-project] Cloudformation module does not read the template file with .json extension

2016-02-01 Thread Bhotu
Hi Brian, I have tried the "cassandra.json" file with the following paths: /Users/suthata/Downloads/playbooks/ansible/cassandra.json and /Users/suthata/Downloads/playbooks/cassandra.json...Still no directory found error. I am running ansible on following path: /Users/suthata/Downloads/playboo

[ansible-project] Cloudformation module does not read the template file with .json extension

2016-02-01 Thread Bhotu
I am working with the following script and I have got an error. Saying that your file is not found. Although my file is already there. What could be the possible problem ? Script: . cas_cloud.yml -- --- - name: Create Cloudformation Template for Cassandra Servers h

[ansible-project] Re: ec2_metric_alarm not working for Notification creation with "alarm_actions"

2016-01-29 Thread Bhotu
ng-SCALE-DOWN" comparison: "<=" threshold: 20.0 alarm_actions: - '{{ autoscaling.results[1].arn }}' - 'arn:aws:sns:us-east-1:465404420665:Polanotify' So, I have done the above part.. What co

[ansible-project] Re: ec2_metric_alarm not working for Notification creation with "alarm_actions"

2016-01-29 Thread Bhotu
create it manually on autoscaling group console for already available SNS ARN or is there any module in ansible which supports any parameter so that i can directly create SNS notifications in the autoscaling group ? On Thursday, 28 January 2016 13:49:14 UTC-8, Bhotu wrote: > > I have been

[ansible-project] ec2_metric_alarm not working for Notification creation with "alarm_actions"

2016-01-28 Thread Bhotu
I have been using the following line in "alarm_actions" in "ec2_metric_alarm" module: local_action: module: ec2_metric_alarm . . . alarm_actions: "arn:aws:sns:us-east-1:465404482164:Polnotify" I did created this with "sns_topic". But I am not able to link it with the ec2_metri

[ansible-project] Re: error in group vars that I can't solve

2016-01-28 Thread Bhotu
Does that "arn:aws:sns:ap-southeast-1:779200210943:chanakaalerts" works ?.. I am getting the unusual error saying "msg": "BotoServerError: 400 Bad Request\nhttp://monitoring.amazonaws.com/doc/2010-08-01/\";>\n \n How to create the notification with ec2_metric_alarm module ?.. I created with

[ansible-project] ec2_metric_alarm doesn't detect SNS notification

2016-01-27 Thread Bhotu
Here is my ansible-script to create alarms and notification through ec2_metric_alarm module. I can successfully create the scaling part, but I cannot able to create the SNS notification. - name: Create or delete AWS metric alarms metrics you wish to alarm on must already exists

[ansible-project] Path of "ansible_ssh_private_key_file" through AWS account

2016-01-20 Thread Bhotu
I am currently working with AWS Autoscaling. In order to communicate with the AWS instance, we need ssh keys and that has to be on to your local machine. I need to configure the same server without downloading the keys on to my machine. Is it possible that I can create an inventory and SSH keys

[ansible-project] Could not able to connect to AWS instance through Ansible Tower

2016-01-05 Thread Bhotu
I am currently working with AWS Cloud instance on Ansible tower. I followed all the procedures same as the documentation. When I ran my playbook, it shows me "Unreachable". I have got SSH Error, Saying permission denied. I have added my DNS Public name as the Host name in the inventory and

[ansible-project] Autoscaling using "Ansible-pull" with AWS instances for Master and Slave configuration

2015-12-28 Thread Bhotu
I am working with AWS instances currently and want to transfer all the configuration that is currently running on AWS master node to the multiple AWS slave nodes with Ansible only. Slave nodes may be 2 or 3 or may be more. Is it possible with the Ansible-Pull model to automatically scale the

Re: [ansible-project] Deploy Subnets into Different availability zones using Ansible.

2015-12-15 Thread Bhotu
Hi I can only find all the subnets in the same availability zones which is us-east-1a only. I want each of my subnets into different availability zones in AWS. On Tuesday, 15 December 2015 10:46:43 UTC-8, Josh Smift wrote: > > B> I am Working on putting subnets into different availability zones

[ansible-project] Deploy Subnets into Different availability zones using Ansible.

2015-12-15 Thread Bhotu
I am Working on putting subnets into different availability zones with the help of ansible. I want to put subnet1 into us-east-1a, then subnet2 into us-east-1b and so on. Currently I can only be able to put servers onto us-east-1a only. Here is the ansible scripts. --- - name: Create AWS VPC

[ansible-project] How to Copy file1 from server A to server B; then Copy file2 from server C to D in Ansible ?

2015-11-20 Thread Bhotu
I want to copy files from one server to another using Ansible. Below is the example Server A --> Server B Server C --> Server D I have my one file on Server A and specifically want to copy that file on to the server B, and same for server C to D. Folder to save files to the destinati

[ansible-project] Re: Playbook acting on multiple hosts

2015-11-20 Thread Bhotu
Let us say, I have four servers. A,B,C and D. I want to deploy SSH public keys from A to C and also from C to D. How can I do with ansible playbook ? On Saturday, 3 August 2013 07:19:19 UTC-7, Sylvain Wallez wrote: > > Hi there, > > I've recently fallen in love with Ansible and I'm "playbook'ing"