Re: [ansible-project] Re: Access Splunk alerts through ansible

2018-08-28 Thread Mark Phillips
e in ansible to create alert. > > Thanks & regards, > Pradeep Kumar Drall > 919711940167 > skype - pradeep.kumar2607 > > > On Tue, Aug 28, 2018 at 7:20 AM Mark Phillips > wrote: > >> Hello Pradeep, >> >> When you say 'access Splunk alerts&

[ansible-project] Re: Access Splunk alerts through ansible

2018-08-28 Thread Mark Phillips
Hello Pradeep, When you say 'access Splunk alerts' how do you mean? Would you like the Splunk alert to do something with Ansible? Maybe trigger an Ansible playbook run? If you can talk of the specific scenario that would be most helpful. Thanks! On Monday, 20 August 2018 17:37:21 UTC+1, Prade

Re: [ansible-project] How to detect which role called an other role in case of role dependency

2017-04-13 Thread Mark Phillips
This. I always used to suggest to people – strongly – that they avoid using meta to pull in other roles, because it's frankly unkind to your colleagues. Role dependency paths are sooo much easier to visualise if you just list them in the order you need them in a parent play. Simples! On Thur

Re: [ansible-project] Re: Can't Fix Ansible SSH Error

2017-04-05 Thread Mark Phillips
A ha, excellent! We have some positive news :) So I'd suggest there's something up with the rsync. Wrapping rsync in Ansible can be a challenge - hence the synchronize module (also a challenge!) I'd be inclined to just test another module between the servers too - in your playbook I mean. Maybe

[ansible-project] Re: Can't Fix Ansible SSH Error

2017-04-05 Thread Mark Phillips
27;s prove the connectivity – from an Ansible perspective – first. Cheers On Wednesday, 5 April 2017 23:19:03 UTC+1, Robert F wrote: > > Hi Mark, > > No, when I run the ansible ping command, I get "No hosts matched." > However, if I just use the normal ping command on that I

[ansible-project] Re: Can't Fix Ansible SSH Error

2017-04-05 Thread Mark Phillips
Hello Robert, Does 'ansible -m ping 45.56.89.116' from that same backup server work just fine? On Wednesday, 5 April 2017 17:55:03 UTC+1, Robert F wrote: > > Here is the output when I run the playbook with the "-" argument: > > > PLAY [restore database server] > ***

Re: [ansible-project] Re: Parallel VM Creations

2016-12-20 Thread Mark Phillips
On Tuesday, 20 December 2016 19:53:01 UTC, Brian Coca wrote: > > I was going for even simpler: > Dude, you rock! > > # inventory > > [vm_group] > host[1-50] ansible_connection=local > > # play > - hosts: vm_group > gather_facts: false > tasks: > - create_vm: name={{inventory_hostname

[ansible-project] Re: Parallel VM Creations

2016-12-20 Thread Mark Phillips
On Monday, 19 December 2016 15:18:28 UTC, Chethan S wrote: > > Is it possible to create multiple VMs in parallel? As of now, it's one VM > after another. I use the vmware_guest module for creating VMs in vCenter > Server. > > I tried specifying *strategy: free *but that is not helping. > Funni

[ansible-project] Re: need to pull value from mysql (or elsewhere) as a variable

2016-07-20 Thread Mark Phillips
Hello, You could use a lookup or command to run a mysql query. Although not specifically what you're looking for, this example does go to somewhere remote to get a value... https://github.com/phips/ansible-demos/blob/master/roles/app/tasks/main.yml#L11 Cheers, --Mark On Wednesday, 20 July 20

[ansible-project] Re: Agentless architecture in Ansible

2016-06-12 Thread Mark Phillips
On Friday, 10 June 2016 12:02:31 UTC+1, Kaushal Shriyan wrote: > > Hi, > > I am new to Ansible. I am not sure what is agent less in Ansible and how > is it advantageous over agent based? I also read the whitepaper > https://www.ansible.com/benefits-of-agentless-architecture and still have > not

Re: [ansible-project] Build automation using ESXi, Ansible, Pysphere

2016-04-21 Thread Mark Phillips
"{{ vcenter_host }}" >>> username: "{{ vcenter_user }}" >>> password: "{{ vcenter_pass }}" >>> guest: "{{ item.guest }}" >>> state: "{{ item.state }}" >>> vm_extra

[ansible-project] Re: Is there a way to find out network speed and bandwidth using ansible

2016-04-06 Thread Mark Phillips
Not what you're after, I suspect, but... shell: "ethtool {{ ansible_default_ipv4.interface }} | awk '/Duplex|Speed/ { print $1, $2 }'" On Wednesday, 6 April 2016 08:13:59 UTC+1, Deepa Yr wrote: > > Hi > >I want to check machine is provisioned with proper specifications > or not. As part

Re: [ansible-project] Build automation using ESXi, Ansible, Pysphere

2015-11-12 Thread Mark Phillips
that would be the killer feature for now. > Thanks! > > miercuri, 11 noiembrie 2015, 18:18:29 UTC+1, Mark Phillips a scris: >> >> Hello Mihai, >> >> Well, it's two other products there that are in effect needing control >> of. You need vSphere to interact wit

Re: [ansible-project] Build automation using ESXi, Ansible, Pysphere

2015-11-11 Thread Mark Phillips
s a module or an Ansible > trick that you can specify the boot parameter in the vsphere boot :) that > would be helpful. > > > vineri, 6 noiembrie 2015, 18:33:56 UTC+1, Mark Phillips a scris: >> >> If it's from a CD boot Mihai just hit 'tab' then put ks

Re: [ansible-project] Build automation using ESXi, Ansible, Pysphere

2015-11-06 Thread Mark Phillips
If it's from a CD boot Mihai just hit 'tab' then put ks= as Michael suggested. Otherwise, with PXE boot you can specify the option on the kernel line, like: kernel -n img http://ks.internal/centos/7/os/x86_64/images/pxeboot/vmlinuz ks=http://ks.internal/bootstrap/ks/7.ks On Friday, 6 November

[ansible-project] Re: Ansible failing on Amazon Linux AMI 2015.03

2015-08-11 Thread Mark Phillips
Oh yes. I wonder if that's something that's broken lately? Set python2.6 to be the default alternative and it works OK... [ec2-user@ip-172-31-34-97 ~]$ sudo alternatives --set python /usr/bin/python2.6 [ec2-user@ip-172-31-34-97 ~]$ ansible --version ansible 1.9.2 On Tuesday, 11 August 2015 11

[ansible-project] Re: Ansible failing on Amazon Linux AMI 2015.03

2015-08-11 Thread Mark Phillips
Because you don't need it Constantin. Amazon Linux already has EPEL plumbed in, it's just not enabled. See... [ec2-user@ip-172-31-33-248 ~]$ *yum --enablerepo=epel info ansible* Loaded plugins: priorities, update-motd, upgrade-helper epel/x86_64/metalink

[ansible-project] Re: Ansible failing on Amazon Linux AMI 2015.03

2015-08-10 Thread Mark Phillips
Amazon Linux already has EPEL configured, so you should just be able to do 'yum install ansible'. It looks like you've put the EPEL repo in place for RHEL6, when Amazon Linux is closer to 7 - hence the Python 2.7 dependency. On Monday, 10 August 2015 17:31:20 UTC+1, Co S wrote: > > Hi All, > >

[ansible-project] Re: Are roles analogous to modules/cookbooks in Puppet/Chef?

2015-07-08 Thread Mark Phillips
Hello Joaquin, Yep, you're on the right track there. This might help you... http://probably.co.uk/ansible-for-puppet-users.html On Wednesday, 8 July 2015 17:39:21 UTC+1, Joaquin Menchaca wrote: > > I was wondering how to organize configuration code into segments, such as > nginx, mysql, redis,

[ansible-project] Re: Clone VMs on vSphere

2015-05-13 Thread Mark Phillips
On Wednesday, 13 May 2015 12:39:27 UTC+1, Marcel Bezemer wrote: > > Hey, > > I am currently playing around with ansible to see if this could be used > for us in production with our deployments. Something I am currently have > trouble wrapping my head around is the following. > > I want to use an

[ansible-project] Re: Ansible task seems to start weblogic but doesn't

2015-04-25 Thread Mark Phillips
Hello, A common problem I've hit a number of times. You can do an async, yes, with a massive timeout (99 or such like). I did have some success with this once though: - name: Ensure admin service is started shell: > running=$( netstat -ant | grep -cP '7001.+LISTEN' ) ; [ $runn

[ansible-project] Re: How to best use Ansible in an autoscaling environment?

2015-04-25 Thread Mark Phillips
Hello, I've done a lot of demos of this sort of thing using Ansible Tower's 'callbacks' feature. A playbook is exposed as a URL - embed a call to that URL[1] in user-data when spinning up an instance, and you have a 'phone home' solution that keeps the beauty of the push model. --Mark [1] Her

[ansible-project] Re: vsphere_guest module not recognizing from_template param

2015-02-18 Thread Mark Phillips
Wednesday, 18 February 2015 17:54:46 UTC, Mark Phillips wrote: > > Well, I went to roll the latest and greatest and there are some tests > failing (I have the 'make rpm' rolled up in Jenkins) - so it doesn't build. > > Will check it again for you tomorrow John-Paul, i

[ansible-project] Re: vsphere_guest module not recognizing from_template param

2015-02-18 Thread Mark Phillips
he > bootstrapping of my control boxes themselves so I can figure this out! > > > On Wednesday, February 18, 2015 at 11:38:30 AM UTC-6, Mark Phillips wrote: >> >> OK, with an RPM built last weekend it still works just fine for me... >> >> $ rpm -q ansible >>

[ansible-project] Re: vsphere_guest module not recognizing from_template param

2015-02-18 Thread Mark Phillips
] *** changed: [local] My play looks like: https://gist.github.com/phips/7c25ccc74f2aee268ed8 On Wednesday, 18 February 2015 17:26:50 UTC, Mark Phillips wrote: > > Worth checking ;-) > > I've been using the template stuff since late December, and it's working > all f

[ansible-project] Re: vsphere_guest module not recognizing from_template param

2015-02-18 Thread Mark Phillips
Worth checking ;-) I've been using the template stuff since late December, and it's working all fine. However, saying that, I've not tried a recent code base. Is your 1.9 pull really recent? I'll try a bang up to date pull and see if I get the same... On Wednesday, 18 February 2015 17:20:42 UT

[ansible-project] Re: vsphere_guest module not recognizing from_template param

2015-02-18 Thread Mark Phillips
Hello John-Paul, You've not, by any chance, got more than one Ansible on your system have you? On Wednesday, 18 February 2015 15:01:11 UTC, John-Paul Herold wrote: > > Sure! http://pastebin.com/1KM7Zyez > > Let me know if you have any other questions. Thanks! > -- You received this message bec

Re: [ansible-project] Getting error in deploying VMs using Ansible vsphere_guest module

2015-02-14 Thread Mark Phillips
You might be getting bitten by something I fixed in December... https://github.com/ansible/ansible-modules-core/pull/562 Does it do the same if you use the devel branch? On Friday, 13 February 2015 15:19:17 UTC, Daniel H wrote: > > Can you post the vsphere_guest task that's failing? I can't pick

[ansible-project] Re: [ansible-devel] Developing the vmware inventory script

2015-02-11 Thread Mark Phillips
bscribed to the Google Groups >> "Ansible Development" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to ansible-devel+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >>

[ansible-project] Developing the vmware inventory script

2015-02-11 Thread Mark Phillips
Folks, I was wondering if anybody has done any work on the vmware.py[1] dynamic inventory script? I'd like to push it on a bit, with a couple of things: a) Get it using the Python pysphere module (to bring it inline with vsphere_guest - please leave "pysphere vs pyvmomi" for now, that's a whole

Re: [ansible-project] Is this possible with Ansible?

2015-02-10 Thread Mark Phillips
Well worth looking at doing this with inventory and group_vars Chris - ideally you want to avoid embedding lots of {% if %} stuff in templates, because it makes it harder for people to follow what you're doing. Make the software do the work for you... http://docs.ansible.com/intro_inventory.htm

Re: [ansible-project] Use conditionals to determine if further action is required

2015-02-10 Thread Mark Phillips
Always worth looking at the stat module for checking out paths too Mark... - name: Check for prior download stat: path={{ vmwtools_tmp }}/{{ vmwtools_tar}} register: tar - name: Fetch tools install get_url: url={{ vmwtools_url }}/{{ vmwtools_tar }} dest={{ vmwtools_tmp }} when:

[ansible-project] Re: [OT] AnsibleFest London

2015-02-02 Thread Mark Phillips
I'd be delighted to meet up and have a chat, face to face finally! I'll talk to Greg and Brian and we can sort something out fairly central. --Mark On Monday, 2 February 2015 13:20:13 UTC+1, Matthew Macdonald-Wallace wrote: > > Hi all, > > Just wondering who's going to be in town on Wednesday ni

[ansible-project] Beginner: Ansible on OSX module path not found

2015-02-01 Thread Mark Phillips
Hello Anatol, You're close ;) Read over the getting started guide and you'll spot your mistakes. But to help get you going ... You need to specify -i for that hosts txt file - do a --help to understand the switch. -m specifies an ansible module - see module documentation at docs.ansible.com,

Re: [ansible-project] PDF Documentation

2015-01-08 Thread Mark Phillips
On Thursday, 8 January 2015 10:34:04 UTC+1, Stuart Budd wrote: > I do not think that the idea will fly at all well, especially when they > are paying for the product. > And when they pay for it (Ansible Tower) they get a PDF ... problem solved! :) -- You received this message because y

[ansible-project] Re: Build automation using ESXi, Ansible, Pysphere

2015-01-07 Thread Mark Phillips
Hello, I've recently done just this - and I coupled the VM creation with PXE booting. I have two PXE menus in place, the default one just says 'boot to HD'. The other one is the install menu, with a kickstart line. I control the use of this with Ansible by doing the following: https://gist.git

[ansible-project] Velocity Barcelona

2014-11-12 Thread Mark Phillips
Hello Folks, We are a sponsor at Velocity Barcelona next week - so if you're going along, come say hello to us. It'll be me manning the booth. I think we'll have some goodies too :) --Mark -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

[ansible-project] Minimize ssh connections number

2014-10-19 Thread Mark Phillips
What version of Ansible are you using Alexey? Look at 'pipelining', that's probably what you're after. I think it needs a fairly recent ssh version too though. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

Re: [ansible-project] v1.6.8 ERROR: a duplicate parameter was found in the argument string

2014-07-23 Thread Mark Phillips
Absolutely brilliant! Thanks for pulling that in so fast. > On 24 Jul 2014, at 00:11, Michael DeHaan wrote: > > Yep, Benno works for us and is awesome. > > The unarchive fix is now merged, the command module bit is a bit different. > > > > >> On W

Re: [ansible-project] v1.6.8 ERROR: a duplicate parameter was found in the argument string

2014-07-23 Thread Mark Phillips
It hits the unarchive module too, it would appear. Got bit by that in the middle of a demo/presentation last night (that'll teach me to be running from devel!) There is a ticket Michael, looks like somebody has already fixed it too, and sent you the PR. https://github.com/ansible/ansible/pull

Re: [ansible-project] PowmInsecureWarning: Not using mpz_powm_sec

2014-07-10 Thread Mark Phillips
s that would be a bit cryptic and surprising to most people. > > Stick it in your ~/.ansible.cfg or /etc/ansible/ansible and you should be > good to go, otherwise set environment vars. > > > > >> On Thu, Jul 10, 2014 at 2:50 PM, Mark Phillips wrote: >>&

Re: [ansible-project] PowmInsecureWarning: Not using mpz_powm_sec

2014-07-10 Thread Mark Phillips
On Wednesday, 30 April 2014 21:58:45 UTC+1, James Cammarata wrote: > Mark, our main concern was not hiding a warning pertaining to a security > issue, even if there was no current fix available. In order to find some > middle ground, we've gone ahead and added a new configuration option: > syst

Re: [ansible-project] Group Hostvars with --limit

2014-06-16 Thread Mark Phillips
Are there plans to allow it Michael? I've just been bitten by the same behaviour... https://gist.github.com/phips/2a51a5d32fdff4dcb719 Cheers, --Mark On Wednesday, 12 February 2014 13:21:26 UTC, Michael DeHaan wrote: > > There is not a way to do this currently. > > > > > On Tue, Feb 11, 2014 a

Re: [ansible-project] PowmInsecureWarning: Not using mpz_powm_sec

2014-04-30 Thread Mark Phillips
> Thanks! > > > On Wed, Apr 30, 2014 at 1:16 PM, Mark Phillips wrote: > The trouble is Michael it's not an easy resolution for many people. RHEL6 is > probably very widely used, so we're now getting into 'dependency hell' > territory. Upgrading libgmp

Re: [ansible-project] PowmInsecureWarning: Not using mpz_powm_sec

2014-04-30 Thread Mark Phillips
The trouble is Michael it's not an easy resolution for many people. RHEL6 is probably very widely used, so we're now getting into 'dependency hell' territory. Upgrading libgmp just isn't practical. If the problem isn't that severe, and the error message can be suppressed, I'd like to be able to

[ansible-project] pycrypto2.6, paramiko, Ansible 1.6 issue

2014-04-30 Thread Mark Phillips
Folks, I'm running CentOS6.5, and have pulled the default python-crypto RPM to use a newer version so Vault works. I'm running an RPM build from the Ansible source (devel branch - ansible-1.6-0.git201404301338.el6.noarch) The EPEL python-crypto2.6 RPM seems to have the Crypto directory under th

[ansible-project] Re: Ansible log plugin to output XML

2014-03-31 Thread Mark Phillips
::unit and prove but I personaly don't like that > solution > Regards, > Sergio > > On Wednesday, March 19, 2014 4:55:49 PM UTC, Mark Phillips wrote: >> >> Hello folks, >> >> Not something I'd ordinarily advocate - XML (eugh) - but I was wondering >>

[ansible-project] Ansible log plugin to output XML

2014-03-19 Thread Mark Phillips
Hello folks, Not something I'd ordinarily advocate - XML (eugh) - but I was wondering if anybody had done anything with producing run log output as XML? I'm looking at it so I can plug Ansible testing into a CI solution, in this case specifically Bamboo. I can make use of the JUnit processor wi

[ansible-project] Re: Ansible plugin for FreeIPA

2014-03-10 Thread Mark Phillips
Interesting, and timely. Funnily enough I started looking at FreeIPA at the weekend, as part of a proposal for a current client project (where I'm building out an infra with Ansible). Naturally I'd done the initial setup with Ansible (the easy bit - 'yum' :-)) and was progressing to looking at

[ansible-project] Re: lineinfile help (file doesn't exist)

2014-02-28 Thread Mark Phillips
Yup, just to echo Walid, I do a similar thing. Check for file/directory, save in register, react in following task. An example being initialising Postgres databases... - name: Check for default database stat: path={{ postgres.datadir }}/PG_VERSION register: pgv - name: Initialise database (i

Re: [ansible-project] Re: Using Ansible for compliance checking

2014-01-22 Thread Mark Phillips
And that’s precisely what the client, in this particular case, wants Michael. So yes, please do hurry along and get it in the product ;) Reporting is the key thing, especially for management types. Just being able to see the state of their systems is a good start, because then it can easily be

Re: [ansible-project] Using Ansible for compliance checking

2014-01-22 Thread Mark Phillips
On Tuesday, 21 January 2014 17:42:02 UTC, Jesse Keating wrote: > You could create a fact module that gathers facts about what packages > are installed (essentially an rpm -qa stuffed into a dictionary). > Thanks Jesse, nice idea. I'd have to test the performance of it - my first thought is it

[ansible-project] Using Ansible for compliance checking

2014-01-21 Thread Mark Phillips
Hello Folks, I'm working on a configuration management proposal for a client at the moment - and I'm planning on using Ansible (I have 'prior'). Part of their requirements is patching - and having done something similar in the past with Puppet, I was planning on looking at doing patch managemen

[ansible-project] Re: EC2 provisioning with Ansible

2014-01-13 Thread Mark Phillips
Yes, you can, using 'register' and 'groupname'. Take a look at this playbook I did to do just that: https://github.com/phips/aws-jenkins On Monday, 13 January 2014 15:32:26 UTC, howa...@gmail.com wrote: > > Is it possible to fully automatic launch an EC2 instance and run the > playbooks against

[ansible-project] Re: run multiple tasks in parallel for multiple hosts

2014-01-13 Thread Mark Phillips
Hi, Take a look at asynchronous actions: http://docs.ansible.com/playbooks_async.html On Monday, 13 January 2014 00:13:19 UTC, Tao Fan wrote: > > Hi all, > > I have search around for this but they are all about running one task > concurrently for multiple hosts. What I am trying to get is runni