[ansible-project] Advice needs for Ansible Tower Installation

2017-09-05 Thread Nuwan Vithanage
Hope your doing good. Appriciate if you can let me know answers below concerns I need advice from you appreciate if you can provide advice regarding below concerns. When I install ansible tower Do i need to install ansible 1st ? Where I can define inventory /etc/ansible/hosts or other

Re: [ansible-project] BigIP_Pool monitor template not found

2017-09-05 Thread Tim
Sean, try the module found in the f5-ansible side-band repository here. It will be upstreamed once the new dev window for Ansible is opened. https://github.com/F5Networks/f5-ansible/blob/devel/library/bigip_pool.py -tim On Tue, Sep 5, 2017 at 12:43 PM, Sean G. wrote:

[ansible-project] Ansible Role issue - formatting tasks

2017-09-05 Thread ThatGuyDoingStuff
> > Initialized the ansible role with command line call. > Role fails with this error: > > > > tasks/main.yml > > # Configure MySQL 5.6 repos for Xenial and above. > > - include: mysql_repos.yml > > - inlcude: folder_check.yml > > - inlcude: flyway_git.yml > > - include: flyway.yml > > > > > >

[ansible-project] Re: Ansible role - created role that includes tasks, variables, default values ...

2017-09-05 Thread ThatGuyDoingStuff
On Tuesday, September 5, 2017 at 5:17:13 PM UTC-4, Abe Figueroa wrote: > > > Initialized the ansible role with command line call. > Role fails with this error: > > > > tasks/main.yml > > # Configure MySQL 5.6 repos for Xenial and above. > > > > - include: mysql_repos.yml > > - inlcude:

[ansible-project] Ansible role - created role that includes tasks, variables, default values ...

2017-09-05 Thread Abe Figueroa
Initialized the ansible role with command line call. Role fails with this error: tasks/main.yml # Configure MySQL 5.6 repos for Xenial and above. - include: mysql_repos.yml - inlcude: folder_check.yml - inlcude: flyway_git.yml - include: flyway.yml example of one of the tasks i made that

Re: [ansible-project] Re: Newbie question on syntax

2017-09-05 Thread Jean-Yves LENHOF
Le 05/09/2017 à 22:26, Kenny Barnes a écrit : > Thanks but I moved like so and now get another error. > > tasks: > - name: Pull WWPNs from UCS > getucswwpns: >host={{ inventory_hostname }} >ucs_user="config" >ucs_pass="config" >outputfile=output.txt >

[ansible-project] Re: Newbie question on syntax

2017-09-05 Thread Kenny Barnes
Thanks but I moved like so and now get another error. tasks: - name: Pull WWPNs from UCS getucswwpns: host={{ inventory_hostname }} ucs_user="config" ucs_pass="config" outputfile=output.txt logfile=log.txt The offending line appears to be: - name:

[ansible-project] BigIP_Pool monitor template not found

2017-09-05 Thread Sean G.
I have a play that works when I use: monitors: "/Common/http" or any of the other default montors, but when I try to use one that I created manually I get "01070022:3: The monitor template /Common/SPIFFYCUSTOM_MONITOR was not found.'" - name: Create or Config non-clientweb Pools

[ansible-project] Re: Newbie question on syntax

2017-09-05 Thread Sieds Pallas
Op dinsdag 5 september 2017 20:51:55 UTC+2 schreef Kenny Barnes: > > Keep getting an error when running the following playbook. Copied from > gethub and watch youtube running the same w/o error. > > Error: > > The offending line appears to be: > > tasks: > - name: Pull WWPNs from UCS >

[ansible-project] Newbie question on syntax

2017-09-05 Thread Kenny Barnes
Keep getting an error when running the following playbook. Copied from gethub and watch youtube running the same w/o error. --- - name: Get Existing UCS Information hosts: ucs (Runs on UCS group in the inv file) connection: local gather_facts: no tasks: - name: Pull WWPNs from UCS

Re: [ansible-project] Re: Ansible SSH as one user and Sudo as another

2017-09-05 Thread prakash ranjan
Hi, This is what I'm getting:- Working without sudo. But not with sudo option. ansibledir$ ansible all -m command -a 'whoami' | SUCCESS | rc=0 >> pranjan ansibledir$ ansible all -m command -a 'whoami' --sudo -K SUDO password: | FAILED! => { "changed": false, "failed": true,

[ansible-project] Q: Obscure standard variables?

2017-09-05 Thread Sieds Pallas
Hi, I am working trhough some tutorials, and I have a question; I hope this is the proper forum to post it. In the solution provided with the tutorial I see some variables used that I do not understand: inventory_hostname and: groups["webservers"] I do not find these in the ansible

[ansible-project] Re: Ansible winrm to connect to windows guest via certificate.

2017-09-05 Thread Rui Pereira
sexta-feira, 4 de Agosto de 2017 às 07:52:20 UTC+1, Jordan Borean escreveu: > > Certificate auth is a bit of a pain with WinRM, I found the best article > to get this working would be > http://www.hurryupandwait.io/blog/certificate-password-less-based-authentication-in-winrm. > > Personally

Re: [ansible-project] How to get all the instances per VPC and get security group of each instance for a particular zone.

2017-09-05 Thread Nirjhar Banik
Thanks Pshem, worked for me! Cheers! Nirjhar On Monday, September 4, 2017 at 4:13:13 PM UTC+5:30, Pshem Kowalczyk wrote: > > You need a number of separate steps: > > 1. Get VPC id (ec2_vpc_net_facts) > 2. Get list of instances in that VPC using vpc-id as a filter > (ec2_remote_facts) > 3. Get

Re: [ansible-project] Ansible roles stored in Git

2017-09-05 Thread Steve Saner
On 09/05/2017 10:33 AM, Ash Powell wrote: I'm not sure that this would work for us as we might have multiple people using/running the same role so it would need to be a common location (ie not a home folder) In my case I really only have one or two people that would be running ansible, but I

[ansible-project] "attr: i" failing on cent/rhel/oel6 -- why?

2017-09-05 Thread John Harmon
I am setting the immutable flag on a file (using template module). It sets the immutable flag fine on cent/rhel7, but on cent/rhel/oel6 it complains. I can set it manually on the *6 boxes just fine. Wondering why you think this may be failing. Seems like a bug with ansible to me: ok:

Re: [ansible-project] Ansible roles stored in Git

2017-09-05 Thread Ash Powell
I'm not sure that this would work for us as we might have multiple people using/running the same role so it would need to be a common location (ie not a home folder) On Tuesday, 5 September 2017 15:51:44 UTC+1, Steve Saner wrote: > > On 09/05/2017 09:04 AM, Ash Powell wrote: > > Thanks for the

Re: [ansible-project] Ansible roles stored in Git

2017-09-05 Thread Steve Saner
On 09/05/2017 09:04 AM, Ash Powell wrote: Thanks for the links. Watching the video, it mentions about storing the Playbook in a Git repo, but nothing about storing the roles in a Git repo. I'm referring to the files that (by default) sit on "/etc/ansible/roles/" I, personally, don't store

Re: [ansible-project] Ansible roles stored in Git

2017-09-05 Thread Ash Powell
Thanks for the links. Watching the video, it mentions about storing the Playbook in a Git repo, but nothing about storing the roles in a Git repo. I'm referring to the files that (by default) sit on "/etc/ansible/roles/" -- You received this message because you are subscribed to the Google

[ansible-project] Re: Task execution only for special items within a loop

2017-09-05 Thread 'J Hawkesworth' via Ansible Project
I am not sure I have fully understood your example but if the goal is to install someArtifact and a corresponding someArtifact-properties, but also allow for there not to be a someArtifact-properties, (in which case you would just install 'someArtifact', then you might be able to make use of

[ansible-project] Re: install help from source

2017-09-05 Thread Soniya panwar
>>I can't seem to find out the exact process of installing it in a different path other then /usr/local/bin (I guess it is the default? ) yes, you can install this from different path. you can give the directory path while cloning the code. you can follow these steps: step:1 yum install make

[ansible-project] vmware_guest module configure networks with distributed switch / Portgroup

2017-09-05 Thread 'Jörg Mainzer' via Ansible Project
Hello, on creation or reconfiguration of a vmware guest I got an error: fatal: [localhost]: FAILED! => {"changed": true, "failed": true, "msg": "Das Objekt oder Element, auf das Bezug genommen wurde, konnte nicht gefunden werden."} when the network is a Portgroup of a vSphere distributed

[ansible-project] Ansible API run playbook on specific tasks using tags

2017-09-05 Thread Anonymous
HI, It would be great if someone can help me to specify tags while running ansible playbook via Ansible API 2.0. I have below code taken from https://stackoverflow.com/questions/27590039/running-ansible-playbook-using-python-api: #!/usr/bin/env python import osimport sysfrom collections

[ansible-project] Task execution only for special items within a loop

2017-09-05 Thread 'Tom Bartsch' via Ansible Project
Hi there, I have the following playbook: --- - hosts: "{{ host }}" vars: bundle_artifacts: - artifactId: "someArtifact" version: "1.0.0" extension: "zip" - artifactId: "kietmyartifact-properties" version: "5.0.0" extension: "jar" -

Re: [ansible-project] Building an ini file based on user input

2017-09-05 Thread chipcha
Hi Adrian, Thanks for your response! see my comments inline On Monday, August 14, 2017 at 7:43:21 PM UTC+3, Adrian Likins wrote: > > > > The default ansible inventory format is only 'ini-like' so I wouldn't > expect tools for handling standard ini files (like the ini_file module) to > work

Re: [ansible-project] Ansible roles stored in Git

2017-09-05 Thread 'J Hawkesworth' via Ansible Project
Probably lots of 'correct' ways of setting this up, but if you want a suggestion of how to start, this is something that Sam Doran talked about in his Ansiblefest London talk earlier this year. The video is here: https://www.youtube.com/watch?v=7gEKmsuJr7s=youtu.be (other interesting

Re: [ansible-project] Re: Structuring and managing multiple unrelated projects

2017-09-05 Thread 'J Hawkesworth' via Ansible Project
I think the hosts would get merged into a single group called web, so that in itself might not be a problem. Where you might fall down is if you have different group var settings for hosts belonging to the same group names. If that's the case you might be able to move things around a little

[ansible-project] Commands needed for NPM Set registry, NPM set proxy and untar a tgz file in ansible

2017-09-05 Thread ManiGandan T
Hi Team, I am logically creating a code in ansible-container with reference of a nodejs application container code written using docker. I am not able to find the exact syntax to change the below docker code. Could someone help me on this. RUN npm config set registry

[ansible-project] Python API 2.0 Ansible Fail

2017-09-05 Thread TranceWorldLogic
Hi, I was trying to invoke ansible plabook from python and got various blocker. 1> I have used dict formated data for ansible playbook tasks. And then tried to executed it working fine (as shown example in below link) e.g. at http://docs.ansible.com/ansible/latest/dev_guide/developing_api.html

Re: [ansible-project] Ansible roles stored in Git

2017-09-05 Thread Ash Powell
Fantastic! Are there any guides or walkthroughs showing the best/correct way of setting this up? Like I say, I’ve had a search myself but there’s nothing specific that I can find. On Monday, 4 September 2017 17:46:59 UTC+1, Dick Visser wrote: > > That's not only possible but highly