Re: [ansible-project] Loading rvm in remote server before a playbook starts

2015-08-23 Thread Marcus Franke
On Sat, Aug 22, 2015 at 03:15:40PM -0700, Derrick Mar wrote: Hey Brian. Thanks for the response. Yeah I definitely agree this is a noop. My question is how do I make is so that it loads RVM and ansible_env.PATH will include paths such as /home/ubuntu/.rvm/gems/ruby-2.2.2/wrappers. For

[ansible-project] Coming two lists into one

2015-08-23 Thread Stanley Nguyen
I'm having a very simple requirement but I have a tough time to make it work Basically I have a list like this: MACHINES: [ { name: Test1, ip: 192.168.1.100}, { name: Test2, ip: 192.168.1.101}, ] I then query AWS to get a list of machines back in a registered variable. What I

[ansible-project] Question / Confusion re: Variables

2015-08-23 Thread Brian Swanson
Hey -- was hoping somebody could explain to me what is going on here. *group_vars/all:* db_name: top_level_db *roles/role_name/vars/main.yml:* db_name: role_level_db db_name_test: {{db_name}} env: DB_NAME: {{db_name}} When I run code in roles/role_name/tasks/main.yml, when I

Re: [ansible-project] Replace variable w/ jinja2

2015-08-23 Thread Brian Coca
moustaches don't stack: set_fact: deploy_list{{ item | replace('deploylist/' + jira_ticket + '/', '') }} -- Brian Coca -- 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

Re: [ansible-project] Loading rvm in remote server before a playbook starts

2015-08-23 Thread Derrick Mar
I see thanks Marcus. I'll go ahead keep fiddling with this and see what I come up with. On Sunday, August 23, 2015 at 4:29:16 AM UTC-7, Marcus Franke wrote: On Sat, Aug 22, 2015 at 03:15:40PM -0700, Derrick Mar wrote: Hey Brian. Thanks for the response. Yeah I definitely agree this is a