[ansible-project] Re: Variable not defined error

2016-12-13 Thread Alexander H. Laughlin
Hello Elliott, I have written a bit of code that may be helpful to you. You may find it here: https://github.com/gahan-corporation/ansible-development/tree/master/work/elliott-barrare Hope it helps. Best of luck to you! On Monday, December 12, 2016 at 5:29:00 PM UTC-8, Elliott Barrere wro

[ansible-project] Traceback in azure_rm.py on Centos 7.3 with Azure python SDK rc6

2016-12-13 Thread Jose Moreno
Hi there, I am trying to install Ansible on a clean, yum-updated CentOS 7.3 machine with the Azure modules, but azure_rm.py refuses to work. I installed the Azure SDK version rc6, and I could not spot any error. I am using file based authentication (~/.azure/credentials), with a file that works

Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-13 Thread Mike Gracy
When you are installing from pip, you are platform independent for the most part (except assmblr/C/etc.. compiles). When you install via a package manager, it's a package tweaked specifically for you platform (install location mostly). On Monday, December 12, 2016 at 5:16:50 AM UTC-8, Gildas Co

[ansible-project] Re: Unable to use ec2_vpc_route_table to remove route tables.... anyone else?

2016-12-13 Thread Igor Cicimov
Just to clarify, was the routing table in use by a subnet(s) at that moment? I think AWS will not allow you to remove a resource that is referenced by another one. On Thursday, December 8, 2016 at 7:43:57 AM UTC+11, rc@gmail.com wrote: > > Using version: > > ansible 2.2.1.0 (stable-2.2 acad2

Re: [ansible-project] Re: IAM Roles with Ansible

2016-12-13 Thread Dan
Yep that was it, thanks for the pointer! This throws errors but this is the right direction. --- - name: ANS Dev Security Group Build .v01 hosts: 127.0.0.1 connection: local tasks: - name: Create two new IAM users with API keys iam: iam_

[ansible-project] Re: IAM Roles with Ansible

2016-12-13 Thread Josh Smift
Is the file that you're showing here a playbook, or a role file? If it's a playbook, it needs more stuff than just the list of tasks. See https://docs.ansible.com/ansible/playbooks_intro.html for some basics. -Josh (j...@care.com) (apologies for the automati

[ansible-project] Re: IAM Roles with Ansible

2016-12-13 Thread Dan
Spacing was changed and I am really at a loss. Python 2.7.12 ansible 2.3.0 Mac If someone can create an example that works, I will be willing to try that, to be able to move forward. Any help? On Tuesday, December 13, 2016 at 8:18:24 AM UTC-5, Dan wrote: > > Ok I ran by using the command `ansib

[ansible-project] Re: Chose random host

2016-12-13 Thread René Moser
Better late than never - hosts: localhost tasks: - add_host: name: "{{ item }}" groups: elected_leader with_random_choice: "{{ groups['web'] }}" - hosts: elected_leader gather_facts: no tasks: - debug: var=inventory_hostname -- You received this message because you ar

Re: [ansible-project] Configuration files deployment

2016-12-13 Thread vu001
Hi Kai, thanks for help... your suggestion could be useful, but it is not the best one. If I have let say 10 hosts and 10 config files, on each host for each FS I need to create list where I specify which config files to deploy on which FS. i.e. config1 [host1.yml] config1: ["FS1","FS2", "FS4"]

Re: [ansible-project] How can I change the path for specific host

2016-12-13 Thread Guilherme Ueno
Hi Greg, I've just created the vars as you said and it worked, thank you very much! On Tuesday, December 13, 2016 at 6:31:27 AM UTC-2, Greg Langford wrote: > > You can use host vars or group vars like the following. > > In the root of your ansible repo where your inventory file sits create the >

[ansible-project] bigip_pool module not found

2016-12-13 Thread Oğuz Yarımtepe
At my virtualenv Here is my ansible.cfg [defaults] host_key_checking = False library =/path/to/ansible-playbooks/venv/lib/python2.7/site-packages/ansible /modules And here is my f5-text.txt localhost] ansible_connection=local ansible_python_interpreter=/Users/oyarimtepe/git. gittigidiyor/ans

[ansible-project] Re: IAM Roles with Ansible

2016-12-13 Thread Dan
Ok I ran by using the command `ansible-playbook -i /etc/ansible/local Dev-Test-IAM.yml` Is that the fault? Do I need to specifically call the module into play? Example: the EC2_Group in the past the module was called out in the yml file. But I see that has changed. --- tasks: - name: Ass

[ansible-project] Re: IAM Roles with Ansible

2016-12-13 Thread Jeremy Young
Looks like a spacing issue. Your list of tasks needs to be indented two spaces. On Monday, December 12, 2016 at 4:45:06 PM UTC-6, Dan wrote: > > # Example of role with custom trust policy for Lambda service > --- > task: > - name: Assign a policy called Admin to the administrators group > iam_

[ansible-project] Re: IAM Roles with Ansible

2016-12-13 Thread Dan
Made the modification still no luck: ansible-playbook -i /etc/ansible/local Dev-Test-IAM-pwr.yaml ERROR! playbooks must be a list of plays The error appears to have been in /Dev-Test-IAM-pwr.yaml': line 3, column 1, but may be elsewhere in the file depending on the exact syntax problem. The off

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

2016-12-13 Thread Bit Divine
iden/idem - I am one of those mathematicians who can't figure out why 'identically' 'potent/powerful' should turn into ideMpotent. Apologies for my bad spelling! On Tuesday, December 13, 2016 at 10:13:47 AM UTC, Bit Divine wrote: > > > I too love things to be idenpotent. It is no accident t

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

2016-12-13 Thread Bit Divine
I too love things to be idenpotent. It is no accident that `check or (install and check again)` is automatically idempotent. :-) On Monday, December 12, 2016 at 3:11:42 PM UTC, Spike Robinson wrote: > > I'm kind of with BitDivine. I've been using Ansible "in anger" (at times > literally!) on

Re: [ansible-project] How can I change the path for specific host

2016-12-13 Thread Greg Langford
You can use host vars or group vars like the following. In the root of your ansible repo where your inventory file sits create the following yaml files for host vars host_vars/hosta host_vars/hostb Within these files you can now specify variables e.g within host_vars/hosta file_path: /file/pat