[ansible-project] Issues with Network Automation

2018-03-27 Thread Jon
Hi all, I am having issues with using Ansible on the HP Aruba 3810. This is due to the Aruba requesting a "Press an

[ansible-project] ansible executing every other task

2015-11-06 Thread Jon
[10.0.0.27] and when I go to the server, only every other package has been installed. Anyone have any idea why this would be happening? Thanks, Jon. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe fro

Re: [ansible-project] Re: Using powercli in Ansible

2020-12-03 Thread Jon POK
Hello Is it possible to run powercli commands instead of using scyrpt in *.ps1? sth like this but example gives me error :( tasks: - name: Run PowerShell Command shell: | Connect-VIServer -Server -User administrator -Password Get-VMHost | get-datastore local |Set

[ansible-project] rename datastore in vcenter

2021-02-22 Thread Jon POK
Hello I am trying to execute this task - name: Rename Datastores on ESXi host vmware_host_datastore: hostname: '{{ vcenter_hostname }}' username: '{{ vcenter_username }}' password: '{{ vcenter_password }}' datacenter_name: '{{ datacenter }}' datastore_name: datastore(1) rename: new_da

[ansible-project] Ansible Without Python?

2021-02-24 Thread Jon Forrest
t there that I could see benefiting from what I have in mind. Thoughts? Cordially, Jon Forrest -- 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 t

[ansible-project] Re: Ansible Without Python?

2021-02-24 Thread Jon Forrest
would have to be transferred. Whether that's important is another question. Thanks for all the responses. Jon -- 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 a

Re: [ansible-project] rename datastore in vcenter

2021-02-28 Thread Jon POK
Hello After execution datastore is not changed. Today i will paste error from -vvv execution wt., 23 lut 2021, 09:43 użytkownik Dick Visser napisał: > What exactly does "its not working" mean? > Errors, etc? > > On Tue, 23 Feb 2021 at 08:00, Jon POK wrote: > >

Re: [ansible-project] rename datastore in vcenter

2021-03-01 Thread Jon POK
Supported parameters include: datastore_name, datastore_type, esxi_hostname, hostname, nfs_path, nfs_ro, nfs_server, password, port, proxy_host, proxy_port, state, username, validate_certs, vmfs_device_name, vmfs_version"} pon., 1 mar 2021 o 08:44 Jon POK napisał(a): > Hello > > After exe

Re: [ansible-project] rename datastore in vcenter

2021-03-01 Thread Jon POK
gt; > > If you want to rename an object in VMware please use > `vmware_object_rename` module. > > > https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_object_rename_module.html > > > > > > > On Mon, 1 Mar 2021 at 10:37, Jon POK wrote:

[ansible-project] remove vmnic from esxi host

2021-03-01 Thread Jon POK
d: '{{ esxi_password }}' switch: vmware_vswitch_0004 nics: - vmnic1 - vmnic2 mtu: 9000 state: present delegate_to: localhost state absent removing vswitch unfortunatly :( greetings Jon -- You received this message because you are subscribed to the Google Groups "Ans

Re: [ansible-project] rename datastore in vcenter

2021-03-01 Thread Jon POK
Maybe stupid qiestion object_moid where I can find it? it seems that rename object without this var wont work greetings Piotr poniedziałek, 1 marca 2021 o 13:09:34 UTC+1 Jon POK napisał(a): > Hello > > Thanks for hint but is not working only in vcenter ? I would like to > rename

Re: [ansible-project] rename datastore in vcenter

2021-03-02 Thread Jon POK
ly to another playbook and rename datastore:( greetings Jon wt., 2 mar 2021 o 06:21 Abhijeet Kasurde napisał(a): > Hi Piotr, > > You can directly use names to rename the object like in your case > datastore > > - community.vmware.vmware_object_rename: > new_name: "DS

Re: [ansible-project] rename datastore in vcenter

2021-03-02 Thread Jon POK
e": "root", "validate_certs": false set facts are not working for me :( greetings jon wt., 2 mar 2021 o 09:19 Jon POK napisał(a): > Hello > > Directly is not working > TASK [Rename object name] > **

[ansible-project] Hardening SSH With Ansible

2019-09-04 Thread Jon Adcock
I think its common practice to "harden" SSH by running the following in one of your playbooks: - name: Disallow root SSH access lineinfile: dest: /etc/ssh/sshd_config regexp: "^PermitRootLogin no" line: "PermitRootLogin no" state: present notify: - restart sshd The way I understand this, if "Pe

Re: [ansible-project] Hardening SSH With Ansible

2019-09-04 Thread Jon Adcock
Racke, I'm not sure how that helps? Ansible will still add the 'no' setting at the bottom of the sshd_config file and the 'yes' setting earlier in the sshd_config file is still active. Thanks, Jon On Wednesday, September 4, 2019 at 10:10:24 AM UTC-4, Stefan Hornbu

[ansible-project] Re: Hardening SSH With Ansible

2019-09-04 Thread Jon Adcock
Kai, I tried removed the no from my regexp and retested. Ansible did replace that line! It did not add a new entry at the end of the config file. Now I have to go figure out WHO changed the config file from no to yes. Thank you. On Wednesday, September 4, 2019 at 9:55:03 AM UTC-4, Jon Adcock

[ansible-project] Re: Hardening SSH With Ansible

2019-09-05 Thread Jon Adcock
Cyril,when I tried your regex and Ansible barked about the \s Both before and after PermitRootLogin I tried double bask-slash s (#|#\\s|\\s|) and that works. On Wednesday, September 4, 2019 at 9:55:03 AM UTC-4, Jon Adcock wrote: > > I think its common practice to "harden" SS

[ansible-project] Re: Hardening SSH With Ansible

2019-09-05 Thread Jon Adcock
Vlado, It's my understanding that the validate step should be done once in the playbook. Not for each sshd action in the playbook. Is that what you are saying? On Wednesday, September 4, 2019 at 9:55:03 AM UTC-4, Jon Adcock wrote: > > I think its common practice to "harden&quo

[ansible-project] How Can I Manage/Monitor The SLES12 Firewall With Ansible?

2019-11-29 Thread Jon Adcock
We use Ansible to manage/monitor the firewall (iptables & firewalld) on numerous Linux OSes. But I am having trouble setting that up for the firewall on our 10 SLES12 servers (SuSEfirewall2). Can anyone provide some guidance on setting this up? Note that I have seen (and downloaded) the SuSE

Re: [ansible-project] How can I pass extra variables to a shell script in my playbooks

2019-02-11 Thread Jon Spriggs
2items %}{{ item.key }}={{ item.value }}{% endfor %}" vars: var: some_key: some_data If not, if you can post some example script, that might help... All the best, -- Jon "The Nice Guy" Spriggs @jontheniceguy everywhere... https://jon.sprig.gs On Mon, 11 Feb 2019 at 16:24

Re: [ansible-project] Re: PLAY RECAP -- Status

2019-02-11 Thread Jon Spriggs
If you spot, in the logs, it shows that it's breaking on the "ethernet0/1", and, if I read it right that's in the "/" in that... So it's probably worth wrapping any instance of "ethernet0/1" in quotes, like I did. Give that a whirl, and try again :)

Re: [ansible-project] Hosts with multiple users.

2019-02-12 Thread Jon Spriggs
ocessing hosts that it doesn't get a response from? (Although, to be fair, I don't entirely know how you'd do that). Perhaps you'd be better off explaining what you're trying to do? -- Jon "The Nice Guy" Spriggs @jontheniceguy everywhere... https://jon.sprig.gs O

Re: [ansible-project] Dealing with non-fixed length lists of variables

2019-02-25 Thread Jon Spriggs
Add members to pool bigip_pool_member: provider: "{{ provider }}" description: "webserver {{ item.key }}" host: "{{ item.value }}" name: "{{ item.key }}" pool: "{{ service }}" port: "{{ lbport }}" loop:

Re: [ansible-project] Re: setting variable in a playbook from a jinjia2 snippet

2019-02-25 Thread Jon Spriggs
Also, look at the set_fact module, I use this extensively! -- Jon "The Nice Guy" Spriggs @jontheniceguy everywhere... https://jon.sprig.gs On Fri, 22 Feb 2019 at 11:45, fusillator wrote: > Sorry for the stupid question > solved with > > - name: "debug a

Re: [ansible-project] Re: setting variable in a playbook from a jinjia2 snippet

2019-02-26 Thread Jon Spriggs
Looks right to me :) Like you, however, I don't have a way to test it right now! --- Jon "The Nice Guy" Spriggs @jontheniceguy everywhere... https://jon.sprig.gs On Mon, 25 Feb 2019, 21:05 fusillator, wrote: > Thanks for the tip Jon. > So if the variable was necessary

[ansible-project] Building variables like in Jekyll?

2019-03-21 Thread Jon Spriggs
quot;dir2": { "dir3": { "file2": {{ content_of_file2.yml }}, 'file3': {{ content_of_file3.json }} } }, 'file4': {{ content_of_file4.yml" }} } } Short of writing a lookup or a playbook to load the data like this, ar

[ansible-project] Check Number Of Wheel Group Members

2019-04-02 Thread Jon Adcock
I'm trying to add a task to my security playbook to ensure that there are no members in the default Linux wheel group. This has turned out to be more difficult than I thought it would be. Can someone out there help get me started? (ansible 2.7.9) -- You received this message because you are

Re: [ansible-project] Check Number Of Wheel Group Members

2019-04-02 Thread Jon Adcock
sudo privileges - assert: that: getent_group.wheel|default(["", "", ""])[2] == "" msg: "The wheel group contains one or more users!" --- task path: /etc/ansible/playbooks/test1.yml:22 fatal: [jo

Re: [ansible-project] Check Number Of Wheel Group Members

2019-04-02 Thread Jon Adcock
That got it ! Thank you for your help. On Tuesday, April 2, 2019 at 2:23:04 PM UTC-4, Sebastian Meyer wrote: > > On 02.04.19 19:50, Jon Adcock wrote: > >that: getent_group.wheel|default(["", "", ""])[2] == "" > &g

Re: [ansible-project] New User First Issue discrepancy between ansible & tower

2019-04-15 Thread Jon Stanley
Did you set up the private key as a credential in Tower? It would appear that you can't authenticate to the remote host when you run via tower. In the UI, there's an option for what credential to use for the job template. I don't have an instance in front of me to walk you through it exactly, but t

[ansible-project] Sorting dicts in lists - works different between my machine and others

2019-05-14 Thread Jon Spriggs
'1012' , 'after': 1009, 'before': 1024}, {'policyid': '1024' , 'after': 1012, 'before': 2019}, {'policyid': '2019' , 'after': 1024, 'before': 8732}, {'policyid': '8732' ,

Re: [ansible-project] trying to pass variable to hosts

2017-05-31 Thread Jon Franklin
On Mon, May 8, 2017 at 3:41 AM, wrote: > I am trying to pass a variables to the hosts in a play > > - name: include vars > hosts: localhost > connection: local > tasks: > - include_vars: > dir: '../group_vars' > depth: 1 > > - name: debug > hosts: localhost > connect

[ansible-project] local_actions: copy contents from stdout issue...LARGE file?

2017-06-26 Thread Jon Williams
Hi, I am using the 'copy content' module to grab the contents of a file from an old version of F5 (where the copy / fetch module doesn't work due to simplejson not being available) Here is an extract play I have put together: - name: "Backup BigIP v10 Config" raw: '!/bin/bash -c "cat

Re: [ansible-project] local_actions: copy contents from stdout issue...LARGE file?

2017-06-30 Thread Jon Williams
ansible commands I was kind of hoping we could use Ansible playbooks to make this more manageable in the future. On Tuesday, 27 June 2017 18:28:05 UTC+1, Kai Stian Olstad wrote: > > On 23. juni 2017 17:19, Jon Williams wrote: > > Any ideas how to get to the bottom of / solve this will b

[ansible-project] Re: How Ansible is different from shell or perl scripting?

2017-07-23 Thread Jon Forrest
to imagine how much work would be required to duplicate what it does in bash or perl. It's important to include the capabilities of inventory management, access control, and other features of Ansible. Jon Forrest -- You received this message because you are subscribed to the Google G

[ansible-project] E-mail Playbook Results of Ansible Run

2017-11-11 Thread Jon Adcock
I've setup an Ansible (v2.4) playbook that configures/checks for compliance with a list of (STIG-based) security checks. I have this playbook scheduled in cron to run weekly but I really want to get an e-mail reporting on the results of each playbook run. Is there something built into Ansible

[ansible-project] Managing Zabbix Using Ansible?

2017-11-13 Thread Jon Forrest
Zabbix configuration. Cordially, Jon Forrest -- 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. To post to thi

[ansible-project] Re: Managing Zabbix Using Ansible?

2017-11-15 Thread Jon Forrest
actually using for this purpose rather than trying a bunch of modules of unknown quality. Jon -- 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 ansib

[ansible-project] Shell/Command module troubleshooting

2017-12-26 Thread Jon Langemak
I suspect this is a common problem - but despite my efforts to troubleshoot and debug this on my own I havent had much luck. I have a shell script that I create through Ansible's template module which I then wish to run use the shell module. If I let the template task run - and then manually

[ansible-project] Problem deploying with cloudformation module

2014-05-06 Thread Jon Burman
anything that helps me solve the issue. Has anyone seen a similar issue before? Thanks, Jon -- 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 ansib

[ansible-project] Local path to a file within a role

2014-07-01 Thread Jon Warbrick
ive the verification command an appropriate path to the file to process. The best I can come up with is a solution based on playbook_dir: {{ playbook_dir }}/roles/foobar-config/files/{{ item }} But this is brittle, because it includes the role name which might change. Is there a better w

Re: [ansible-project] Local path to a file within a role

2014-07-12 Thread Jon Warbrick
ouldn't be much of a problem - if it does, the validation step would fail, which is a good reason to test playbooks anyway. Belated thanks for that - I'll stick with my current approach, though I'm now wondering if role dependencies, etc, may mean even that won't always work.

Re: [ansible-project] Re: Local path to a file within a role

2014-07-12 Thread Jon Warbrick
to construct paths to any other files in the role and bypass the need to run 'pwd'? I fear I'm missing something... Jon. -- Jon Warbrick Information Systems Manager, University of Cambridge Information Services -- You received this message because you are subscribed to the Goog

[ansible-project] Unexpected Behavior With File Module

2014-08-27 Thread Jon Forrest
This one fooled me for a little while because I wasn't paying attention (Ansible 1.6.6). I ran % ansible machine -m file -a 'path=/tmp/jon state=touch mode=0644 owner=root' The file '/tmp/jon' was created, but Ansible returned ansible | FAILED >> { &

Re: [ansible-project] Unexpected Behavior With File Module

2014-08-27 Thread Jon Forrest
pgrade. > > The current latest version is 1.7.1. > This is excellent advice. You're absolutely right. I just upgraded. I believe the chown attempts as non-root has already been addressed. > It doesn't look this way. This is on a host where /etc/ansible/hosts contains [all]

Re: [ansible-project] Unexpected Behavior With File Module

2014-09-01 Thread Jon Forrest
2014/09/01 16:52:36 (GMT -700) % bin/ansible all -m file -a 'path=/tmp/jon state=touch mode=0644 owner=root' localhost | FAILED >> { "failed": true, "gid": 1000, "group": "jonf", "mode": "0664",

[ansible-project] Re: unarchive module: creates does not work

2014-09-15 Thread Jon Hadfield
I submitted a pull request to fix this issue: https://github.com/ansible/ansible/pull/8116 The reason is that the creates option is checked in /library/files/unarchive after it's already been copied in /lib/ansible/runner/action_plugins/unarchive.py. Simply shifting the check to the action_plugi

[ansible-project] Random Parsing Problems in EC2?

2014-10-20 Thread Jon Forrest
sudo: yes sudo_user: postgres It doesn't get much simpler than that. I'm guessing that this is some kind of problem at AWS but I don't know what it could be. Has anyone else seen this? Cordially, Jon Forrest -- You received this message because you are subscribed to the Google

[ansible-project] Re: Random Parsing Problems in EC2?

2014-10-20 Thread Jon Forrest
opying and pasting, except the host name) failed: [ec2-XX-XX-XX-XX.compute-1.amazonaws.com] => {"failed": true, "parsed": false} FATAL: all hosts have already failed -- aborting This is why I don't think it was Ansible that was failing. I suspect something lower level

[ansible-project] Re: PyCharm & Modules

2014-10-29 Thread Jon Forrest
r favorite debugging method. I haven't tried this, and I'm not an Ansible expert, so I'd be interested in finding out if this works. Jon Forrest -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

[ansible-project] Either/or tasks

2014-12-17 Thread Jon Warbrick
e' for remove): - name: Set standalone marker file copy: content='' dest=/var/role-standalone when: '"standalone" in group_names' - name: Unset standalone marker file file: path=/var/role-standalone state=absent when: '"standalone&q

Re: [ansible-project] Either/or tasks

2015-01-05 Thread Jon Warbrick
On Wed, 17 Dec 2014, Brian Coca wrote: not currently, what you have is what works. Ta. At least I wasn't missing something obvious... Jon. -- Jon Warbrick Information Systems Manager, University of Cambridge Information Services

[ansible-project] Does apt_key use proxy environment vars?

2015-03-18 Thread Jon Soul
I'm using a role in my playbook that uses the apt_key module: - name: import repository key apt_key: url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present The target host sits behind a proxy, and I have the usual proxy environment variables already set. This is enough to

[ansible-project] Re: memory_limit in docker module

2015-03-18 Thread Jon Soul
Have you tried converting to an integer with the int filter? memory_limit="{{memory|int}}" (untested) -- 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 ansib

[ansible-project] Re: Does apt_key use proxy environment vars?

2015-03-18 Thread Jon Soul
I'm using Ubuntu 14.04 with ansible 1.8.4 -- 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. To post to this group,

Re: [ansible-project] Re: Does apt_key use proxy environment vars?

2015-03-18 Thread Jon Soul
Thanks for checking that out for me. -- 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. To post to this group, send

Re: [ansible-project] Re: Does apt_key use proxy environment vars?

2015-03-18 Thread Jon Soul
https_proxy is defined and works as expected elsewhere within ansible and otherwise: *$ python>>> import os>>> os.environ.get('https_proxy')'http://proxy.myproxy.com:8080'* On Wednesday, March 18, 2015 at 3:51:08 PM UTC, Brian Coca wrote: > > I looked at the code and it is the following: >

Re: [ansible-project] Re: Does apt_key use proxy environment vars?

2015-03-18 Thread Jon Soul
My workaround was to update to 1.9 so I could use the environment keyword at the play level. -- 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+

[ansible-project] Re: templating templates??

2015-03-19 Thread Jon Soul
Is this what you're looking for: http://jinja.pocoo.org/docs/dev/templates/#escaping? Either use {% raw % } or {{ '{{' }} depending on your use case. On Thursday, March 19, 2015 at 10:52:09 AM UTC, Dick Davies wrote: > > Morning > > I need to push out a Go template file that needs some environm

[ansible-project] Re: Global HTTP proxy setting for all roles/tasks?

2015-03-19 Thread Jon Soul
I recently came up against the same problem. There was a pull request to support play level environment keyword and it was merged not too long ago. https://github.com/ansible/ansible/pull/8651 I'm setting an environment variable in a group_vars file that filters down to all tasks run against t

[ansible-project] Change of behaviour of delagate_to between Ansible 1.9.4 and 2.0.1.0

2016-03-18 Thread Jon B
Apologies for the previous blank post. I have had a playbook in production for about 9 months that carries out a rolling update or our application across a number of servers by using a pre_tasks section that removes a server from load balancers before deploying updated code and then adding the

[ansible-project] Change in delgate_to Behaviour after upgrade to Ansible 2.0.1.0

2016-03-19 Thread Jon B
Hi, I have had a playbook in production that uses a pre_tasks section that removes a server from load balancers before deploying updated code. It was working fine under ansible 1.9.4 however after upgrading to ansible 2.0.1.0 the pretasks are carried out twice on one of the loadbalancers. I h

Re: [ansible-project] Change of behaviour of delagate_to between Ansible 1.9.4 and 2.0.1.0

2016-03-20 Thread Jon B
I've just tested against devel and can confirm that has issue is resolved. Thanks On Friday, March 18, 2016 at 5:39:28 PM UTC, Brian Coca wrote: > > Check against current devel, we just fixed an issue with delegation > connection vars not being set correctly. > > > -- > Brian Coca > --

Re: [ansible-project] Re: Use Ansible to discover/document an environment

2016-05-04 Thread Jon Dison
t; ansible-project@googlegroups.com> wrote: > This project might be a help for you: > > https://github.com/fboender/ansible-cmdb > > It generates a static site but you can specify your own templates (jinja2 > so already familiar) so you could use that to generate different outp

Re: [ansible-project] What does the [0] mean in when: inventory_hostname == groups['mongo_servers'][0] ?

2016-07-20 Thread Jon Murillo
How can I use this *when* function to work with the hosts in my inventory file? I had *when: inventory_hostname == play_hosts[0]* but I notice that it only selects a random server. I want it to select all of the servers. Using a * doesn't work.. On Monday, December 2, 2013 at 12:03:27 AM UTC-6,

[ansible-project] Confused By EC2 Dynamic Inventory

2016-08-29 Thread Jon Forrest
deploying-on-ec2-with-ansible.blog.html (see below) but I'm not seeing how to accomplish these 2 tasks. I know about the ec2.py script, which I can successfully run manually, but I don't know how to incorporate what it produces into a playbook. I'd appreciate any help. Cordially,

[ansible-project] Missing something with host directory/file paths

2016-08-31 Thread Jon Langemak
It's been awhile since I played with Ansible and right now Im tearing my hair out on this copy problem. Im trying to copy a directory on a Linux host to a new location. In ad-hoc ansible, it looks like this... ansible -m copy -a "src=/usr/share/folder1 dest=/config/folder2" servers When I run

Re: [ansible-project] Missing something with host directory/file paths

2016-08-31 Thread Jon Langemak
Thank you! Is there a better means to recursively copy then? Or do I need to copy each file separately? On Wednesday, August 31, 2016 at 5:19:57 PM UTC-5, Brian Coca wrote: > > by default ansible looks in the local 'controller' for the `src=` > parameter, you need to use `remote_src=yes` for i

Re: [ansible-project] Missing something with host directory/file paths

2016-09-01 Thread Jon Langemak
I'll answer this for myself. Seems like just using the command module and doing the copy that way is the best approach. Thanks for putting me on the right track! On Wednesday, August 31, 2016 at 7:09:22 PM UTC-5, Jon Langemak wrote: > > Thank you! Is there a better means to recur

[ansible-project] Running a task only when tag defined

2016-09-03 Thread Jon Langemak
I want to be able to run a task only when I pass a tag to the playbook. Namely, I want to have a tag that allows for decoming a user and one would normally never run that as part of normal playbook run. I found the conditional 'what: tags is defined' but it doesnt seem to work. My task look

[ansible-project] Issues with 'when' filter on with_items loop

2016-11-02 Thread Jon Langemak
Hi All, been tearing my hair out this AM on this one so I think Im just doing something wrong. Long story short, I have two lists in my playbook. One that contains a set of commands from a device and another that contains the set of commands I wish to configure. What I'd like to do is diff th

[ansible-project] Using facts with Ansible Tower does not appear to work

2016-11-16 Thread Jon Kent
; (item=groups['all']) PLAY RECAP ***** 172.31.9.43 : ok=3 changed=0 unreachable=0 failed=0 52.50.60.2 : ok=3 changed=0 unreachable=0 failed=0 I have a feeling that I'm missing something very obvious here. Any id

[ansible-project] Re: Using facts with Ansible Tower does not appear to work

2016-11-17 Thread Jon Kent
Hi, Many thanks for that, hoped it was straight forward. All working now. Many thanks, Jon On Wednesday, 16 November 2016 17:06:47 UTC, Jon Kent wrote: > > Hi, > > I've been trying to get Ansible Tower to run a playbook/role which should > update the /etc/hosts file a

[ansible-project] Problem With Simple Template

2016-11-21 Thread Jon Forrest
o tasks: - debug: var=inventory_hostname - name: test for jon template: src=templates/jon.j2 dest=jon.conf --- jon.inv --- [datacenter] host1.example.com host2.example.com [ntpservers-datacenter] host1.e

[ansible-project] Re: Problem With Simple Template

2016-11-21 Thread Jon Forrest
endfor %} and jon.inv is now [datacenter] host1.example.com host2.example.com [ntpservers_datacenter] host1.example.com Jon -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails f

Re: [ansible-project] Re: Problem With Simple Template

2016-11-22 Thread Jon Forrest
uired. The issue I was trying to address in my posting is how to recognize which role to apply to a host. I think my basic idea is sound. All I have to do is avoid making more stupid mistakes. Thank you *very* much! Jon Forrest -- You received this message because you are subscribed to t

[ansible-project] Fundamental Template Problem

2016-11-22 Thread Jon Forrest
y_hostname - name: test for jon template: src=templates/jon.j2 dest=jon.conf --- jon.inv --- [datacenter] host1.example.com host2.example.com [ntpservers-datacenter] host1.example.com templa

Re: [ansible-project] Re: Problem With Simple Template

2016-11-22 Thread Jon Forrest
27;m not completely satisfied with this approach, because it requires too much replication. It might be possible to add an outer loop that iterates over the silo names. But I'm way farther along than I was yesterday. Thanks! Jon -- You received this message because you are subscribed to

[ansible-project] Possible Improvement to the 'command' Module

2016-11-25 Thread Jon Forrest
ument so it wouldn't affect any existing playbooks. I have to admit I don't have any examples of when this would be necessary but it seems like such a thing could exist. Does this make sense? Jon Forrest -- You received this message because you are subscribed to the Google Groups &q

[ansible-project] Re: Ansible philosophy for those new to the list == keep it simple

2016-12-10 Thread Jon Forrest
cript is not "a declaration of intended state". I might describe a Puppet manifest that way, but an Ansible script is like a program in Python (or many other languages) where you start at the top and move down. I have no idea what the rest of your post is saying. Jon Forrest -- You received thi

[ansible-project] Counting hosts in a group form an ec2 dynamic inventory

2016-12-15 Thread Jon Kellyevans
Is it possible in a playbook to get a list of all (including disabled) hosts in a group using a dynamic inventory connected to ec2. We have a 10 host limit on our ansible tower which allows a small team to spin up ec2 instances. they occasionally stop them .. and then spin up 2nd machines,

[ansible-project] Would It Make Sense to Allow Multiple Inventories?

2017-02-04 Thread Jon Forrest
; option were changed to accept multiple directories. I know you can currently give multiple comma-separated hosts so maybe a different character would be used to separate directories. What do you think? Cordially, Jon Forrest -- You received this message because you are subscribed to the Go

[ansible-project] Re: Would It Make Sense to Allow Multiple Inventories?

2017-02-05 Thread Jon Forrest
stem inventory and a personal one. Jon Forrest -- 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. To pos

[ansible-project] Re: Would It Make Sense to Allow Multiple Inventories?

2017-02-05 Thread Jon Forrest
le way of doing this. Jon -- 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. To post to this group,

[ansible-project] Re: Would It Make Sense to Allow Multiple Inventories?

2017-02-06 Thread Jon Forrest
ntory files. In a way it's too bad that hostnames are allowed in a '-i' argument. Jon -- 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, se

[ansible-project] Re: Would It Make Sense to Allow Multiple Inventories?

2017-02-06 Thread Jon Forrest
rgument to "-i" ends in a comma, then the whole string would be considered a host list, but if it ends in anything other than a comma, it would be a inventory host path list. Anyway, thanks for your input. Jon -- You received this message because you are subscribed to the Google Groups &q

Re: [ansible-project] Installing Ansible on AIX

2017-03-09 Thread Jon Stanley
On Tue, Mar 7, 2017 at 2:49 AM, Mona Gopal wrote: > > Have been referring to the below link, but hasn't been of much help: > https://www.djouxtech.net/posts/ansible-on-aix/ Not an AIX expert (or even novice), but in what way has this not been of help? It explains what the pre-requisites are (a wo

[ansible-project] Re: IP whitelisting challenge

2015-07-13 Thread Jon Hadfield
I had a similar issue, the difference being that I'm using only private addresses within the VPC subnets. As Brian said, your limiting factor is AWS, so apologies if the following is a bit off-topic for this group... The solution I used was to use ansible to automate a redundant pair of NAT ins

[ansible-project] Re: Using results of RDS facts to update a template

2015-07-18 Thread Jon Hadfield
Rather than register the facts and write to a file, you can use a custom lookup to query the endpoint based on the instance name. Then you can put the following in your template file: {{ lookup('aws_rds_endpoint_port_from_instance_name', (region, database_instance )) }} where region is a variab

[ansible-project] Re: Using results of RDS facts to update a template

2015-07-18 Thread Jon Hadfield
Oops, that should have read: {{ lookup('aws_rds_endpoint_*name*_from_instance_name', (region, database_instance )) }} The other returns the port. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receivi

[ansible-project] Re: Constructing a List.

2015-07-22 Thread Jon Hadfield
from here <https://github.com/jonhadfield/ansible-lookups> into a directory called lookup_plugins in the root of your project. Jon -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop recei

[ansible-project] Re: ec2_asg timeout issue

2015-07-22 Thread Jon Hadfield
Have you tried specifying a wait_timeout, i.e.: - wait_for_instances Wait for the ASG instances to be in a ready state before exiting. If instances are behind an ELB, it will wait until the instances are considered by the ELB. [Default: True] - wait_timeout how lo

[ansible-project] Re: How to install the packages using EC2 user data at the launch time

2015-07-27 Thread Jon Hadfield
I had the same issue on Centos, i.e. I added a script and nothing happened. Not tried on Debian based distros, but I found building a base AMI with cloud-init installed and, in /etc/cloud/cloud.cfg set 'disable_root: false', solved it for me. Then launch an instance of that base AMI, setting th

[ansible-project] Ansible v1.9 fails to get_url when auth type is not basic (ntlm

2015-10-13 Thread Jon Detert
le except to force the use of basic. Either way, get_url fails with this error: "msg: Request failed" Any ideas how I can download stuff from TFS with ansible other than the command module? Thanks, Jon -- You received this message because you are subscribed to the Google Groups

[ansible-project] SSH Connection does not complete.

2015-10-30 Thread Jon Dison
When attempting to run an ansible module on a remote host, the SSH connection never fully completes... [myhost myusername 11:46:23]~ $ ansible -v -m setup -i ~/dave_ansible/ansible/hosts.txt remotehost -u user -k -K --sudo SSH password: SUDO password[defaults to SSH password]: ESTABLI

[ansible-project] Use Ansible to discover/document an environment

2015-11-03 Thread Jon Dison
I'm wondering if anyone has any existing playbooks and/or scripts to go through an environment and document the findings. Basically a way to transform the results from the setup module into a useful CSV would be a good start, but also adding on other facets like lists of patches to be applied,

Re: [ansible-project] Oracle Java module

2014-04-23 Thread Jon Thor Austen
Can you add information on how to run this playbook/module (or whatever it is) ? I'm inclined to think I can run it with just Python by calling 'python java.py', but I doubt it is that straightforward? -- You received this message because you are subscribed to the Google Groups "Ansible Pro