echo "Update packages: "
docker exec -it $containerName sh -c "yum -y update"
echo "Add epel repos"
docker exec -it $containerName sh -c "yum -y install epel-release"
echo "Install needed packages: "
docker exec -it $containerName sh -c "yum install -y git rpm-build redhat-rpm-config gcc-c++ make nodejs"
View gist:29c7552b31f5069669caae7b5d1d2f82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- set_fact: do_token="{{ lookup('env', 'DO_API_TOKEN')}}" | |
- set_fact: ssh_key_name="{{ lookup('env', 'SSH_KEY_NAME')}}" | |
- name: ensure ssh key exists and get the key id | |
digital_ocean: | |
state: present | |
command: ssh | |
name: my_ssh_key |
View gist:4b70adc9a1c2396f1f4ef95920e8a077
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# tasks file for common | |
- name: install Python 2.x | |
raw: which python || sudo apt-get update && sudo apt-get install -qq -y python-simplejson | |
register: python_check | |
changed_when: not python_check.stdout is search('/usr/bin/python') | |
- name: install pip | |
apt: | |
name: python-pip |
View gist:63f5e9a0de22face4349b85fdc241c43