[ansible-project] Re: Using ansible to call python script with subprocess module to run sqlplus script, Ansible shows missing sqlplus...?

2016-02-11 Thread bryan . yu
Environment variables needed to be set for sqlplus + ansible interaction using shell module with executable /bin/bash and setting specific environment variables (without referencing other env vars) fixed this. If anyone else uses ansible with sqlplus, here's a better play for you - name: Run py

[ansible-project] Re: yum task fails in playbook

2016-02-11 Thread bryan . yu
Figured out the issue. I set some environmental variables (for Oracle sqlplus) in my playbook that caused conflicts with the yum module. On Thursday, February 4, 2016 at 1:45:20 PM UTC-6, brya...@santecapital.com wrote: > > Ansible 2.0.0.2 > > I can run the yum module via ansible ad-hoc command

[ansible-project] Using ansible to call python script with subprocess module to run sqlplus script, Ansible shows missing sqlplus...?

2016-02-11 Thread bryan . yu
Hello all, I am using ansible to deploy and provision some instances then runs a python script at the very end. The python script uses the subprocess module to call a sql script and generate flat text files. When I directly s

Re: [ansible-project] yum task fails in playbook

2016-02-04 Thread bryan . yu
Hmm okay. I'll blow everything up and start over on this. I am able to get the yum module to run in a play on a different group so I'll see if updating my inventory or something can make this go away. On Thursday, February 4, 2016 at 2:08:49 PM UTC-6, Brian Coca wrote: > > i cannot reproduce thi

Re: [ansible-project] yum task fails in playbook

2016-02-04 Thread bryan . yu
In my play I have this: tasks: - name: test yum: name='*' state=latest become: true become_method: sudo Even when I replace '*' with git or another package it still with the same error message. On Thursday, February 4, 2016 at 1:54:48 PM UTC-6, Brian Coca wrote: > > try using s

[ansible-project] yum task fails in playbook

2016-02-04 Thread bryan . yu
Ansible 2.0.0.2 I can run the yum module via ansible ad-hoc command ansible testloader -i inventory --vault-password-file ~/.vault_pass.txt -u ec2-user -m yum -a "name=* state=latest" But when I run the module as a task inside the playbook I get module failed TASK [test]

[ansible-project] local_action fails to find module in Ansible 2.0 (delegate_to works)

2016-02-02 Thread bryan . yu
Upgraded to ansible 2.0.0.2 from 1.9.4 and noticed that after creating a new ec2 instance the wait_for module failed when using local_action: Here's my play and the output: - name: Wait for SSH to come up *local_action:* module: wait_for host={{ item.public_dns_na

[ansible-project] ERROR! need more than 2 values to unpack while using ansible commands

2016-02-01 Thread bryan . yu
Upgraded to Ansible 2.0.0.2 via brew and can't run any of the core ansible commands on OSX. > ansible localhost -m ping - Using /Users/bryanyu/Projects/data-repo/ansible/ansible.cfg as config file ERROR! need more than 2 values to unpack I am not using any spaces in my group names. (#13917