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"
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 |
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 |