[ansible-project] Download multiple files from S3

2018-02-06 Thread Suporter
How can i download multiple files from same bucket, can we use wildcard for this? i am confused a bit - name: Download from S3 s3: profile: iupdate region: ap-southeast-1 bucket: reareses object: sdaces/{{item}} with_fileglob: "*.zip" dest: "/home/

[ansible-project] Trimming

2018-02-05 Thread Suporter
hi, i have a variable registered as Location and the value is C:\Windows\System32, i want to modify it to C:\windows\felik , i would like to modify the location upto drive level wherever required.. how can i do this -- You received this message because you are subscribed to the Google Groups

[ansible-project] Get details of installed iis websites

2018-02-04 Thread Suporter
I am using win_iis_website and would like to know whether it is possible to fetch the details of already installed websites like location, application pool and so on -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

[ansible-project] Re: SKipping no hosts matched

2017-07-25 Thread Suporter
got it working, just added all.yml in group_Vars...wow..awesome..thanks buddy On Monday, July 24, 2017 at 5:17:27 PM UTC+5:30, Suporter wrote: > > Hello, > i ran this > ansible-playbook setup.yml -i '10.22.212.184,' and i got the error > message as no hosts matc

[ansible-project] Re: SKipping no hosts matched

2017-07-25 Thread Suporter
nope, this IP has no entry anywhere:( i am kind of confused, usually group_vars folder has entry for group that we mention in hosts:web , but this time its all, how can i do this? should i have any entry in ansible.cfg On Monday, July 24, 2017 at 5:17:27 PM UTC+5:30, Suporter wrote: > >

[ansible-project] Re: SKipping no hosts matched

2017-07-25 Thread Suporter
wow, good, its runnning but now throwing a weird error ""Failed to connect to the host via ssh: ssh: connect to host " Why does it take ssh why it is not using winrm? :( On Monday, July 24, 2017 at 5:17:27 PM UTC+5:30, Suporter wrote: > > Hello, > i ran this >

[ansible-project] Re: SKipping no hosts matched

2017-07-25 Thread Suporter
i cannot run a playbook straightaway against a single host without having that in inventory? On Monday, July 24, 2017 at 5:17:27 PM UTC+5:30, Suporter wrote: > > Hello, > i ran this > ansible-playbook setup.yml -i '10.22.212.184,' and i got the error > message as

[ansible-project] Re: SKipping no hosts matched

2017-07-24 Thread Suporter
i dont get this, this is not working, how can i make it work? :( On Monday, July 24, 2017 at 5:17:27 PM UTC+5:30, Suporter wrote: > > Hello, > i ran this > ansible-playbook setup.yml -i '10.22.212.184,' and i got the error > message as no hosts matched, the ip

[ansible-project] SKipping no hosts matched

2017-07-24 Thread Suporter
Hello, i ran this ansible-playbook setup.yml -i '10.22.212.184,' and i got the error message as no hosts matched, the ip i gave should be entered somewhere else as inventory file as well? -- You received this message because you are subscribed to the Google Groups "Ansible Project" grou

Re: [ansible-project] Re: AWS Ansible

2017-07-07 Thread Suporter
en you > can't accidentally > commit credentials to a repo or use the wrong account. > > http://docs.ansible.com/ansible/guide_aws.html > > > On 4 July 2017 at 11:33, Suporter > > wrote: > > Sorry, i dont really know where to start, > > Should i save

Re: [ansible-project] Re: AWS Ansible

2017-07-04 Thread Suporter
x27;s ssh keys). > > If the -e 'credentials=/path/to/credentials' , you just need to lookup > the file and > read it's contents. Or just set environment variables before you run > the playbook, I > thought the aws related modules read the environment fine. > > On

[ansible-project] Re: AWS Ansible

2017-07-04 Thread Suporter
be spinned up in that account. how can i do this? On Thursday, June 29, 2017 at 11:28:59 AM UTC+5:30, Suporter wrote: > > Hi Ansiblers, >How can i use same playbook for multiple aws accounts, can i give > the access key and secret key as command line paramters in playbook? &g

[ansible-project] Re: AWS Ansible

2017-07-04 Thread Suporter
ok and if AWS ENV variables are already > set, as boto will take this into account also. > best to understand better the AWS credentials and profiles > > http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html#credentials-default > > > On Monday, 3 July

[ansible-project] Re: AWS Ansible

2017-07-02 Thread Suporter
Any help? On Thursday, June 29, 2017 at 11:28:59 AM UTC+5:30, Suporter wrote: > > Hi Ansiblers, >How can i use same playbook for multiple aws accounts, can i give > the access key and secret key as command line paramters in playbook? > -- You received this message

[ansible-project] AWS Ansible

2017-06-28 Thread Suporter
Hi Ansiblers, How can i use same playbook for multiple aws accounts, can i give the access key and secret key as command line paramters in playbook? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and st

[ansible-project] AWS suggestion

2017-06-08 Thread Suporter
Hi Ansiblers, I would like to spin up ec2 instances , but i have no idea how it works, how can i have multiple accounts keys with same playbooks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and st

[ansible-project] Re: Ansible winrm connectivity issue.

2017-05-10 Thread Suporter
it is using default port 5985, but you have mentioned 5986 in vars..check that On Wednesday, May 10, 2017 at 6:01:55 AM UTC+5:30, ramkrishn...@gmail.com wrote: > > Hi , > > Need your help in fixing this issue. > > I have a sample playbook that I have created to get ipconfig from windows > machi

Re: [ansible-project] Re: How to use results of find and win_find

2017-05-02 Thread Suporter
The error was: 'ansible.vars.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'path'\ On Wednesday, May 3, 2017 at 8:32:23 AM UTC+5:30, Suporter wrote: > > and i need to call item.filename and item.path? i tried it , but it does > not work > > On Wedne

Re: [ansible-project] Re: How to use results of find and win_find

2017-05-02 Thread Suporter
and i need to call item.filename and item.path? i tried it , but it does not work On Wednesday, May 3, 2017 at 5:22:07 AM UTC+5:30, Matt Martz wrote: > > It may be enough to do: > > with_items: "{{ exepath.results|map(attribute='files') }}" > > > On Tue, May 2, 2017 at 4:40 PM 'J Hawkesworth' vi

[ansible-project] Re: How to use results of find and win_find

2017-05-02 Thread Suporter
this is seriously annoying, i keep getting different errors every time {"failed": true, "msg": "'list object' has no attribute 'files'"} How do we pick the right attribute from win_find On Tuesday, May 2, 2017 at 7:13:33 PM UTC+5:30, Suporter

[ansible-project] How to use results of find and win_find

2017-05-02 Thread Suporter
Hello, How to use results of find and win_find, i am registering the output of this to some variable, but should i trigger a task based on this var | changed? or some other condition? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To un

Re: [ansible-project] if failed

2017-05-01 Thread Suporter
yeah, it has to be in sequence? On Monday, May 1, 2017 at 11:47:53 PM UTC+5:30, Brian Coca wrote: > > out of order? > > > -- > Brian Coca > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop re

Re: [ansible-project] if failed

2017-05-01 Thread Suporter
ok, lets say i have 5 tasks, if 4th one fails, can i run 2nd one using this when: registeredvar|failed ? On Monday, May 1, 2017 at 11:07:46 PM UTC+5:30, Brian Coca wrote: > > On the task, ignore_errors=yes + register then the subsequent task > when: registeredvar|failed > > -- > Brian

[ansible-project] if failed

2017-05-01 Thread Suporter
is there a way i can run a task if a task fails? how can i mention that -- 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...@googlegro

[ansible-project] HG clone- pick only the changed file in a repo

2017-04-27 Thread Suporter
is it possible to pick only the changed file in a repo. - name: Clone Config hg: repo: http://url clone: yes dest: "/home/files/" delegate_to: localhost register: cloned in the variable cloned, i can see the repo status not the file statu

[ansible-project] Re: can we use loop modules twice in ansible playbook.

2017-04-27 Thread Suporter
can you please show the output of it...i dont see that in the screenshot On Thursday, April 27, 2017 at 7:15:43 PM UTC+5:30, balubhai555 wrote: > > Thanks for your quick reply. Already entered those bold lines. > > Got the same issue. > -- You received this message because you are subscribed to

[ansible-project] win_iis_website- Parameters

2017-04-27 Thread Suporter
How do we know the available parameters in this module , the example given in the doc is as follows, what are the other parameters that we can set? - name: Acme IIS site win_iis_website: name: "Acme" state: started port: 80 ip: 127.0.0.1 hostname: acme.local application_

[ansible-project] Re: can we use loop modules twice in ansible playbook.

2017-04-26 Thread Suporter
tasks: - name: Launch EC2 instance ec2: key_name: "{{keypair}}" group: default count: "{{count}}" instance_type: "{{instance_type}}" instance_tags: '{"Name": "{{item.names}}","Type":"{{tag_Type}}","Environment":"{{tag_Environment}}"}' image: "{{im

[ansible-project] Re: hg commit/push/pull

2017-04-26 Thread Suporter
i wanted clone and its there, i want to commit/push/update On Wednesday, April 26, 2017 at 9:43:05 PM UTC+5:30, Suporter wrote: > > hg ansible module seems to have only clone? other actions cant be done > with it? > -- You received this message because you are subscribed to the G

[ansible-project] Re: can we use loop modules twice in ansible playbook.

2017-04-26 Thread Suporter
if you debug that you will get the real result name, it may be something like ec2.results.instances or something like that. can you post the debug output of ec2 variable? On Wednesday, April 26, 2017 at 12:25:27 AM UTC+5:30, balubhai555 wrote: > > Hello team, > > I want to > >1. Create AWS

[ansible-project] hg commit/push/pull

2017-04-26 Thread Suporter
hg ansible module seems to have only clone? other actions cant be done with it? -- 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...@g

[ansible-project] User input empty

2017-04-26 Thread Suporter
Hello, i am using vars_prompt to get some inputs , i want to run a task only when user inputs something, if the user did not enter anything i want to skip the task how can i do it? vars_prompt: - name: location prompt: Please enter the folder location private: no tasks: -- Y

[ansible-project] Re: using files folder for storing files

2017-04-25 Thread Suporter
thanks for the reply On Monday, April 24, 2017 at 9:07:33 PM UTC+5:30, Suporter wrote: > > when we create a roles folder, there is a folder called files in it, can i > use it for storing zip files or whatever i would like to store ..if yes how > can i reference that in playbo

[ansible-project] Re: using files folder for storing files

2017-04-24 Thread Suporter
, Suporter wrote: > > when we create a roles folder, there is a folder called files in it, can i > use it for storing zip files or whatever i would like to store ..if yes how > can i reference that in playbook, should i mention the location or is there > an ansible way of referrin

Re: [ansible-project] using files folder for storing files

2017-04-24 Thread Suporter
pahting should be changed to pathing :p and also i dont know how to use it in playbook On Monday, April 24, 2017 at 9:14:53 PM UTC+5:30, Kai Stian Olstad wrote: > > On 24. april 2017 17:37, Suporter wrote: > > when we create a roles folder, there is a folder called files in

[ansible-project] using files folder for storing files

2017-04-24 Thread Suporter
when we create a roles folder, there is a folder called files in it, can i use it for storing zip files or whatever i would like to store ..if yes how can i reference that in playbook, should i mention the location or is there an ansible way of referring it -- You received this message because

[ansible-project] 'utf8' codec can't decode byte 0xff in position 0: invalid start byte"

2017-04-24 Thread Suporter
Getting the subject mentioned error while reading a compressed json, any workaround for this? - name: read local file set_fact: reg_changes: "{{ lookup('file', '/home/tess/xl.json') | from_json }}" delegate_to: localhost -- You received this message be

[ansible-project] Use variable in next task

2017-04-23 Thread Suporter
i am using win_find to find set of files and registering the result using register, how can i access it in the next task, i used debug to print out the results from the variable, but when i use it in next task its not working i am picking item.filename and item.path after seeing the debug msg..

[ansible-project] Re: Import excel file values to ansible

2017-04-23 Thread Suporter
can you post an example to read csv file, and also when i have a compressed json ansible is not able to read it, can i decompress the json to make it work? On Thursday, April 20, 2017 at 2:01:17 PM UTC+5:30, Suporter wrote: > > i have an excel file with 2 columns and multiple rows o

[ansible-project] Multiple modules in a same task

2017-04-21 Thread Suporter
Is it possible to have multiple modules in same task? for example : if i want to copy a file and extract it cant i use copy and unzip in same task? should i create separate tasks for each module? -- You received this message because you are subscribed to the Google Groups "Ansible Project" gro

[ansible-project] Re: Import excel file values to ansible

2017-04-21 Thread Suporter
Thanks for the reply On Thursday, April 20, 2017 at 2:01:17 PM UTC+5:30, Suporter wrote: > > i have an excel file with 2 columns and multiple rows of data, , basically > like a key value pair, i want to import those as it is into win_Regedit for > creating registry entries, how ca

[ansible-project] Re: Import excel file values to ansible

2017-04-20 Thread Suporter
any help? On Thursday, April 20, 2017 at 2:01:17 PM UTC+5:30, Suporter wrote: > > i have an excel file with 2 columns and multiple rows of data, , basically > like a key value pair, i want to import those as it is into win_Regedit for > creating registry entries, how can i do it

[ansible-project] Mercurial for windows

2017-04-20 Thread Suporter
do we have any module of hg for windows in ansible..or can the hg module be used for maintaining repos in windows -- 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

[ansible-project] hg username and password

2017-04-20 Thread Suporter
http://docs.ansible.com/ansible/hg_module.html How can we give the username and password for accessing the repos in hg module -- 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,

[ansible-project] Re: ec2_ami launch_permissions to multiple accounts

2017-04-20 Thread Suporter
*userid seems to need square brackets, add them up and try* On Thursday, April 20, 2017 at 1:46:05 PM UTC+5:30, Shmulik Alfandari wrote: > > Hi, > > I am creating AMI in AWS using ec2_ami module. I need to create the AMI > and to give permissions to multiple accounts,however it failed. When I am

[ansible-project] Import excel file values to ansible

2017-04-20 Thread Suporter
i have an excel file with 2 columns and multiple rows of data, , basically like a key value pair, i want to import those as it is into win_Regedit for creating registry entries, how can i do it? i want the column1 row1 to be the name in win_regedit and column2 row1 to be the data in win_regedit

[ansible-project] Re: ec2_ami launch_permissions to multiple accounts

2017-04-20 Thread Suporter
*You can use with_items as shown below* *# Create AMI* *- name: Create AMI* * local_action:* *module: ec2_ami* *instance_id: "{{ item.id }}"* *wait: yes* *wait_timeout: 3600* *aws_access_key: "{{ AWSAccessKey }}"* *aws_secre

[ansible-project] Re: Download files

2017-04-19 Thread Suporter
can you please post an example, we need to read md5.txt and download corresponding zip file On Wednesday, April 19, 2017 at 2:21:07 PM UTC+5:30, Suporter wrote: > > Hello, > i have few zip files in a url like 1.zip, 1.md5.txt, 2.zip, 2.md5.txt > , if there is a change in the

[ansible-project] Download files

2017-04-19 Thread Suporter
Hello, i have few zip files in a url like 1.zip, 1.md5.txt, 2.zip, 2.md5.txt , if there is a change in the zip file the corresponding md5.txt entry will be changed, how can i check this condition and download only the zip file when the content of md5.txt is changed. -- You received thi

[ansible-project] Re: How to use notify with with_items

2017-04-18 Thread Suporter
ansiblers any help? On Tuesday, April 4, 2017 at 6:31:19 PM UTC+5:30, Suporter wrote: > > i am downloading zip files from an url, i am using with_items for list of > zip files in that location, i want to do a task (extract) for only the file > downloaded. Since i am new to ansible

[ansible-project] Re: How to use notify with with_items

2017-04-16 Thread Suporter
Should i use "when" here? On Monday, April 17, 2017 at 11:21:13 AM UTC+5:30, Suporter wrote: > > Then you can use the results in download_list to make a new list of zips >> that need extracting ( changed=true) and call win_unzip with the zips that >> were changed &g

[ansible-project] Re: How to use notify with with_items

2017-04-16 Thread Suporter
> > Then you can use the results in download_list to make a new list of zips > that need extracting ( changed=true) and call win_unzip with the zips that > were changed How can i do this? On Tuesday, April 4, 2017 at 6:31:19 PM UTC+5:30, Suporter wrote: > > i am downloading

[ansible-project] Re: How to use notify with with_items

2017-04-05 Thread Suporter
ansiblers any help? On Tuesday, April 4, 2017 at 6:31:19 PM UTC+5:30, Suporter wrote: > > i am downloading zip files from an url, i am using with_items for list of > zip files in that location, i want to do a task (extract) for only the file > downloaded. Since i am new to ansible

[ansible-project] Re: How to use notify with with_items

2017-04-04 Thread Suporter
Why ansible forums is not so active all the time? On Tuesday, April 4, 2017 at 6:31:19 PM UTC+5:30, Suporter wrote: > > i am downloading zip files from an url, i am using with_items for list of > zip files in that location, i want to do a task (extract) for only the file > downloa

[ansible-project] How to use notify with with_items

2017-04-04 Thread Suporter
i am downloading zip files from an url, i am using with_items for list of zip files in that location, i want to do a task (extract) for only the file downloaded. Since i am new to ansible i cant think of anything other than using with_items for downloading files, but i dont know how to make use

[ansible-project] Most of the windows modules dont work as expected?

2017-04-04 Thread Suporter
hello, i am using 2.3rc1 and i could see that most of the windows modules has some issues, particularly with IIS -- 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

[ansible-project] Re: Is this possible?

2017-04-04 Thread Suporter
Any replies would be appreciated On Wednesday, March 29, 2017 at 12:19:36 AM UTC+5:30, Suporter wrote: > > i want to create some reg entries and i want to pull data and value for it > from an url..where i can edit those whenever required and when there is a > change there , ansible

[ansible-project] Re: Is this possible?

2017-04-03 Thread Suporter
t side as values and create reg entries and store the values... On Wednesday, March 29, 2017 at 12:19:36 AM UTC+5:30, Suporter wrote: > > i want to create some reg entries and i want to pull data and value for it > from an url..where i can edit those whenever required and when there is a &g

[ansible-project] Re: Is this possible?

2017-04-02 Thread Suporter
i dont really know where the head and tail is , a simple example would help me On Wednesday, March 29, 2017 at 12:19:36 AM UTC+5:30, Suporter wrote: > > i want to create some reg entries and i want to pull data and value for it > from an url..where i can edit those whenever required

[ansible-project] Re: Is this possible?

2017-04-02 Thread Suporter
is the forum alive? i can see most of the questions unanswered... On Wednesday, March 29, 2017 at 12:19:36 AM UTC+5:30, Suporter wrote: > > i want to create some reg entries and i want to pull data and value for it > from an url..where i can edit those whenever required and when t

[ansible-project] Re: Is this possible?

2017-03-31 Thread Suporter
Ping...any replies on how can i achieve this? On Wednesday, March 29, 2017 at 12:19:36 AM UTC+5:30, Suporter wrote: > > i want to create some reg entries and i want to pull data and value for it > from an url..where i can edit those whenever required and when there is a >

[ansible-project] Re: Is this possible?

2017-03-30 Thread Suporter
be stored in a repository or some url ..the value will be different for hello and hi ...i hope you got what i am trying to achieve On Wednesday, March 29, 2017 at 12:19:36 AM UTC+5:30, Suporter wrote: > > i want to create some reg entries and i want to pull data and value for it &g

[ansible-project] Re: Is this possible?

2017-03-29 Thread Suporter
the problem is i dont even know the existence of such options :( On Wednesday, March 29, 2017 at 12:19:36 AM UTC+5:30, Suporter wrote: > > i want to create some reg entries and i want to pull data and value for it > from an url..where i can edit those whenever required and when t

[ansible-project] Is this possible?

2017-03-28 Thread Suporter
i want to create some reg entries and i want to pull data and value for it from an url..where i can edit those whenever required and when there is a change there , ansible should pick it and enter that in registry...is it possible? sorry i am new to ansible.. -- You received this message beca

[ansible-project] same with_items for multiple tasks

2017-03-28 Thread Suporter
How can we create one with_items and use it for multiple tasks -- 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. T

[ansible-project] Re: Download a file in control machine and copy to windows host

2017-03-28 Thread Suporter
how can i mention the destination ? On Tuesday, March 28, 2017 at 11:16:39 AM UTC+5:30, Suporter wrote: > > Hi, > I want to download files from an URL to control machine and store them > in it and copy them over to windows host. How can we achieve this in single > play

[ansible-project] Download a file in control machine and copy to windows host

2017-03-27 Thread Suporter
Hi, I want to download files from an URL to control machine and store them in it and copy them over to windows host. How can we achieve this in single playbook -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

[ansible-project] Re: Download all files from a url

2017-03-27 Thread Suporter
right now, i am downloading with exact link of the files and added those to with_items...is there a way to check if the file is new or not..download only if it is new? On Friday, March 24, 2017 at 10:38:52 PM UTC+5:30, Suporter wrote: > > win_get_url has options to download all files f

[ansible-project] Re: Best Approach- Writing powershell scripts or using Modules?

2017-03-27 Thread Suporter
Intersting, but i am still new to ansible, will take some more days to get used to it.. What does creates do? On Monday, March 27, 2017 at 11:03:15 AM UTC+5:30, Suporter wrote: > > I am new to ansible, what is best approach , is it to use ansible's > windows modules for all

[ansible-project] Best Approach- Writing powershell scripts or using Modules?

2017-03-26 Thread Suporter
I am new to ansible, what is best approach , is it to use ansible's windows modules for all the things or writing powershell scripts and running that powershell script in all servers through ansible. For example: i have a flow 1) Download files from an url 2) Extract if it is zip 3) Deploy in I

[ansible-project] Download all files from a url

2017-03-24 Thread Suporter
win_get_url has options to download all files from an url with uid and pwd and save it locally? i tried with one file but it needs file extensions and exact file names for destination -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsub

[ansible-project] Re: win_feature--Choose only selective sub features

2017-03-24 Thread Suporter
way to achieve this? On Friday, March 24, 2017 at 12:19:35 AM UTC+5:30, Suporter wrote: > > is it possible to choose only selective sub features ? for example: IIS > has so many sub features, if we install them all , there would be > unnecessary footprint, so is it possible to pick an

[ansible-project] Re: win_feature--Choose only selective sub features

2017-03-24 Thread Suporter
:-o . So we have to choose the exact sub feature we want in a role to make sure that we are installing only that. i am using 2.3 rc1 On Friday, March 24, 2017 at 12:19:35 AM UTC+5:30, Suporter wrote: > > is it possible to choose only selective sub features ? for example: IIS > has so