Re: [ansible-project] APRICOT talk

2016-01-16 Thread Randy Bush
> Randy, have you reached out to the Ansible New Zealand meetup group? > > http://www.meetup.com/Ansible-New-Zealand/ > >> APRICOT 2016 Program Committee desperately seeks good speaker to >> introduce ansible. Half hour talk. >> https://2016.apricot.net/program#call-for-papers thanks. have for

Re: [ansible-project] Re: yum state=absent leads to "you need to be root to perform this command"

2016-01-16 Thread SFT-
Run with -K option as per man page. This will prompt you for sudo password. -- 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...@google

Re: [ansible-project] Re: yum state=absent leads to "you need to be root to perform this command"

2016-01-16 Thread Alex Leonhardt
you probably want "sudo: yes" above the tasks .. ? Alex On 16 January 2016 at 13:25, SFT- wrote: > Run with -K option as per man page. This will prompt you for sudo password. > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsub

[ansible-project] ec2_vpc_subnet_facts getting error accessing vpc_id from a fact

2016-01-16 Thread Matthew Graham
Hi All I'm very new to Ansible and loving it. Not sure if Im doing this right but having trouble getting the vpc_id from ec2_vpc_subnet_facts 1. My code runs the module - name: Get the VPC ID ec2_vpc_subnet_facts: region: "{{ aws_region }}" filters: subnet-id: "

[ansible-project] Multiply with floating numbers

2016-01-16 Thread Dewangga Bachrul Alam
I've search some reference but still got no luck about divide operations in ansible. # default/main.yml mariadb_setmem: "{{ ansible_memtotal_mb *1024*1024 }}" mariadb_misc_query_prealloc_size: "{{ mariadb_setmem *0.01 }}" # task/main.yml - name: Debugging Value debug: msg: "{{ mariadb_misc

[ansible-project] RETURN documentation block for cloud facts module

2016-01-16 Thread Chris Zeeb
Hello, I wrote a new module for AWS to gather codedeploy facts. When I submitted the pull request, https://github.com/ansible/ansible-modules-extras/pull/1445, travis failed the build. Below is the comment I added to the PR for why it is failing. I'm hoping that someone can help me write

[ansible-project] [Ansible 2.*] Problem with variables

2016-01-16 Thread George Khan
Hi there! I have some troubles with vars in ansible... What i have: [root@ansible ansible]# cat /etc/ansible/roles/preconf/tasks/main.yml - name: installing pkg apt: pkg=$item with_items: - htop - sudo - tcpdump - mc - wget - vim - facter - name: Add users # user

[ansible-project] multiple when condition not working in playbook

2016-01-16 Thread bablu
Hi, Trying to write playbook with when conditional statement. However, it always choose last command (/home/user//bin/) to execute even though condition matches with another domainname. playbook.yml # command execution Ansible Playbooks - hosts: "{{domainname}}" remote_user: vars_promp

Re: [ansible-project] Multiply with floating numbers

2016-01-16 Thread Matt Martz
That error indicates that you are trying to multiply a sequence, in this case I am assuming a string and a float. mariadb_setmem is cast to a string. You might try: {{ mariadb_setmem|float * 0.01 }} Also that functionality is provided by jinja2. Math operations are described at http://jinja.po