Execute the shell script: jenkins_install.sh
Configure a proxy using nginx or apache to http://ci.company.example.com.br(I'll use this URL as example).
Execute the shell script: jenkins_install.sh
Configure a proxy using nginx or apache to http://ci.company.example.com.br(I'll use this URL as example).
| #first seen here: http://www.snip2code.com/Snippet/63701/Ansible-task-to-install-nvm-and-node | |
| # Here is how to install nvm and node in an Ansible task. | |
| # I tried a bunch of different things, and as usual it's simple, but you have to get it right. | |
| # The important part is that you have to shell with /bin/bash -c and source nvm.sh | |
| --- | |
| - name: Install nvm | |
| shell: > | |
| curl https://raw.githubusercontent.com/creationix/nvm/v0.7.0/install.sh | sh | |
| creates=/home/{{ ansible_user_id }}/.nvm/nvm.sh | 
| #!/bin/bash | |
| # Authorize TCP, SSH & ICMP for default Security Group | |
| #ec2-authorize default -P icmp -t -1:-1 -s 0.0.0.0/0 | |
| #ec2-authorize default -P tcp -p 22 -s 0.0.0.0/0 | |
| # The Static IP Address for this instance: | |
| IP_ADDRESS=$(cat ~/.ec2/ip_address) | |
| # Create new t1.micro instance using ami-cef405a7 (64 bit Ubuntu Server 10.10 Maverick Meerkat) |