Re: [ansible-project] Support for installing Ansible on Windows

2019-08-28 Thread John Favorite
Give it a try from docker! On Wed, Aug 28, 2019, 5:43 PM 'John Thompson' via Ansible Project < ansible-project@googlegroups.com> wrote: > Thanks for the response Jordan. > > On Tue, Aug 27, 2019 at 12:55 PM Jordan Borean > wrote: > >> No plans, it will work but in the odd case it doesn’t you

Re: [ansible-project] Porting playbooks from Ansible 2.4 to newer version

2019-01-01 Thread John Favorite
We just did this on my team. We went from 2.3.2.0(!) ==> 2.5.8 (we'll bump up once a couple rabbitmq module bugs are resolved). So, how did we do it? Installed the latest ansible and ran our playbooks, iterating through issues found until everything ran successful. As I noted above, we had some

[ansible-project] Add ansible_host= to /etc/hosts

2017-07-16 Thread John Favorite
Hi, I am having issues getting proper /etc/hosts entries when I specify ansible_host= in my inventory file. I have two task; first behaves as expected; second chokes with no variable ansible_host defined error. Any help or pointers would be much appreciated. tasks: > - name: Build hosts file >

Re: [ansible-project] Idiot check on how register: is supposed to work?

2017-06-26 Thread John Favorite
Take a look at the stat module. It has slightly better examples of what you are trying to do: http://docs.ansible.com/ansible/stat_module.html On Mon, Jun 26, 2017 at 10:17 PM wrote: > Hello all, > > I'm *very* new to ansible, and hope that this is something very simple >

Re: [ansible-project] running second task from inside playbook

2016-10-02 Thread John Favorite
that should just be a task run against the radius server in a different role. On Sun, Oct 2, 2016 at 10:38 PM Brian Coca wrote: > You can 'delegate' actions to other hosts. > > http://docs.ansible.com/ansible/playbooks_delegation.html > > -- > Brian Coca > > -- > You

Re: [ansible-project] Re: Shade not available via yum?

2016-09-23 Thread John Favorite
t; pip install -U pip > pip install shade > > You could skip epel-release and python-pip by doing: > > yum install -y python-devel libffi-devel openssl-devel gcc > curl -s https://bootstrap.pypa.io/get-pip.py | python > pip install shade > > On Fri, Sep 23, 2016 at

Re: [ansible-project] Re: Shade not available via yum?

2016-09-23 Thread John Favorite
rk either. I still wound up with > the same error when attempting to install cryptography. > > I guess I'll be stuck using shell commands to interact with OpenStack. :-/ > > > > On Friday, September 23, 2016 at 2:06:53 PM UTC-4, John Favorite wrote: > >> I just go pip rou

Re: [ansible-project] Re: Shade not available via yum?

2016-09-23 Thread John Favorite
I just go pip route when it comes to ansible. Here is my vagrant repo to get you up and running for anyone interested (if nothing else but to cheat off) https://github.com/OldCrowEW/vagrant-ansible On Fri, Sep 23, 2016 at 1:56 PM David Shrewsbury wrote: > Oh yuck. >

Re: [ansible-project] Ansible 2.1.0: "Interactive authentication required." when operating with sudo ?

2016-03-20 Thread John Favorite
ment anyways, in a top-to-bottom processing. > > So, still scratching my head... > > Tim > > > On Sunday, March 20, 2016 at 5:31:39 PM UTC-4, John Favorite wrote: > >> comment out >> >> #%wheel ALL=(ALL) ALL >> >> ## Same thing without a pass

Re: [ansible-project] Ansible 2.1.0: "Interactive authentication required." when operating with sudo ?

2016-03-20 Thread John Favorite
comment out #%wheel ALL=(ALL) ALL ## Same thing without a password %wheel ALL=(ALL) NOPASSWD: ALL On Sun, Mar 20, 2016 at 4:11 PM, TJG wrote: > Hi all; > > Just looking for a little help to spot what I might be missing. Against a > Centos 7 box, using Ansible

Re: [ansible-project] Re: How to force creating a new ssh connection

2016-03-20 Thread John Favorite
Here is an article I came across that solves an issue I had: https://dmsimard.com/2016/03/15/changing-the-ssh-port-with-ansible On Fri, Mar 18, 2016, 4:26 PM Brian Coca wrote: > you can run a command to kill the connection locally: > > ssh -O stop -o >

[ansible-project] Openstack os_network - Binding: VNIC Type

2016-03-20 Thread John Favorite
Hello, I am trying to modify the Binding: VNIC Type of an instance. It does not seem to be supported in the OS network modules. I took a look on github and it does not appear to have code to support this feature. Any ideas? -- You received this message because you are subscribed to the Google

[ansible-project] OpenStack os_server os_volume multiple instance launch

2016-03-20 Thread John Favorite
Hello, I am trying to launch/create multiple instances and attach multiple volumes with a loop but not having much luck. I can get it to work if I define each instance/volume but who wants to do that? Ideally I would set a var that says something like make 100 instances. Below is an example of

Re: [ansible-project] Hail Marry - Ansible - Open Stack

2016-03-19 Thread John Favorite
Here is an example that works for me: - name: launch compute instance hosts: localhost vars: auth_url: "http://controller:35357/v2.0/; username: password: project: image: CentOS-7-x86_64-GenericCloud-1601 key: somekey timeout: 200 flavor: m1.small

[ansible-project] keystone_user: role=admin 2.x equivelent

2016-02-20 Thread John Favorite
Hello, What is the correct way to create OpenStack roles and adding my users to them with 2.x? keystone_user is deprecated so if there is a better way I would like to use it. Thanks! -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] role var reference group_var

2016-01-12 Thread John Favorite
Hi I was wondering if there is a way to have a role var defined under defaults to reference a group_var. Basically i would like one file to change if specifics need to be defined per deployment/site. Here is a quick diagram to perhaps explain it better: group_vars all <--- master vars roles/

Re: [ansible-project] loop over host group to create string

2015-11-12 Thread John Favorite
Great, glad it worked for you! On Wed, Nov 11, 2015, 1:27 PM Roy wrote: > Thanks following works for me. > > > zookeeper.connect={% for node in groups['eventstore-zookeeper-' ] %}{{ > node }}:2181{% if not loop.last %},{% endif %}{% endfor %} > > -- > You received this message

Re: [ansible-project] loop over host group to create string

2015-11-08 Thread John Favorite
Hi Roy, Here is what I use for a mapr drill-override template: drill.exec: { cluster-id: "cloud-drillbits", zk.connect: "{% for host in groups['zookeeper'] %}{{ hostvars[host]['inventory_hostname'] }}:5181{% if not loop.last %},{% endif %}{% endfor %}" } Hope this helps. On Thu, Nov 5, 2015

[ansible-project] Cant Copy Files

2015-08-16 Thread John Favorite
I must be missing something really obvious but cant seem to manage copying a repo file in place. The playbook is so simple I am not sure where to start. Here is the output of some - action: [root@localhost ansible]# ansible-playbook - -i hosts-test.ini playbook-sensu.yml PLAY

Re: [ansible-project] Cant Copy Files

2015-08-16 Thread John Favorite
sure thing. I have a standard dir structure laid out: hosts-test.iniplaybook-sensu.yml roles/ sensu/ tasks/ main.yml templates/ files/ sensu.repo I call as: ansible-playbook - -i hosts-test.ini playbook-sensu.yml --- - name: Copy

Re: [ansible-project] Cant Copy Files

2015-08-16 Thread John Favorite
awesome. that was it. thanks much! On Mon, Aug 17, 2015 at 12:33 AM, Brian Coca bc...@ansible.com wrote: you are using the file module, when you mean to use the copy module, change the task to this: - name: Copy Sensu Repo configuration file copy: src=sensu.repo

Re: [ansible-project] Template paths

2014-10-21 Thread John Favorite
permissions issue? On Tue, Oct 21, 2014 at 5:35 PM, Joe Adams adams10...@gmail.com wrote: I tried asking the IRC channel but I didn't get any responses so I figure that the mailing list might be better suited to this question. I'm trying to build an extensible iptables template. All of my

Re: [ansible-project] SIGHUP sent using ansible ?

2014-10-15 Thread John Favorite
My guess would be the fire and forget nature of using the shell command. If you ran '/usr/sbin/myprogram -C /etc/myconfig/myprogram.conf' it would die on exit. I'm curious why you need it instead of just doing: - service: name=httpd state=started On Wed, Oct 15, 2014 at 7:39 AM, Alainkr

Re: [ansible-project] continual deployment with ansible... and managing SSH keys?

2014-09-23 Thread John Favorite
i think he meant unauthorized access to the tower machine. Either way, thats a bigger issue. On Tue, Sep 23, 2014 at 8:19 AM, Michael DeHaan mich...@ansible.com wrote: Not really. Any config tool does need to actually configure the box, however Tower has role based access control that you

Re: [ansible-project] continual deployment with ansible... and managing SSH keys?

2014-09-23 Thread John Favorite
unauthorized access to the Tower machine, unless you have a physical access problem. On Tue, Sep 23, 2014 at 10:28 AM, John Favorite john.favor...@gmail.com wrote: i think he meant unauthorized access to the tower machine. Either way, thats a bigger issue. On Tue, Sep 23, 2014 at 8:19 AM

Re: [ansible-project] Strange problem running Ansible against a CentOS 7 box

2014-09-04 Thread John Favorite
Are there any differences between the centos 7 box that works and the new one? I would be looking at a recent package updates. On Thu, Sep 4, 2014 at 2:12 PM, Willard Dennis willard.den...@gmail.com wrote: I can indeed SSH straight in (using 'root' with password.) I made sure PermitRootLogin