Commit 08e1e21e by Vik Paruchuri

vpc changes

parent 8653a892
- hosts: tag_group_mlapi-bastion - hosts: tag_group_mlapi-bastion
vars_files:
- ["{{ secure_file_dir }}/users.yml", "vars/secure_default/users.yml"]
- ["{{ secure_file_dir }}/bastion_users.yml"]
roles: roles:
- common
- bastion - bastion
\ No newline at end of file
[ec2] [ec2]
regions=all regions=all
destination_variable=public_dns_name destination_variable=public_dns_name
vpc_destination_variable=private_ip_address vpc_destination_variable=ip_address
cache_path=/tmp cache_path=/tmp
cache_max_age=300 cache_max_age=300
...@@ -7,14 +7,18 @@ ...@@ -7,14 +7,18 @@
file: path=$app_base_dir owner=root group=edx mode=2775 state=directory file: path=$app_base_dir owner=root group=edx mode=2775 state=directory
file: path=$app_base_dir owner=ubuntu group=edx mode=2775 state=directory file: path=$app_base_dir owner=ubuntu group=edx mode=2775 state=directory
sudo: True sudo: True
- name: Update apt cache
sudo: True
apt: update_cache=yes
- name: install git and its recommends - name: install git and its recommends
apt: pkg=git state=installed install_recommends=yes apt: pkg=git state=installed install_recommends=yes force=yes
sudo: True sudo: True
- name : install python and its recommends - name : install python and its recommends
apt: pkg=python state=installed install_recommends=yes apt: pkg=python state=installed install_recommends=yes force=yes
sudo: True
- name : install python pip and its recommends
apt: pkg=python-pip state=installed install_recommends=yes force=yes
sudo: True sudo: True
- name: git checkout configuration repo into $app_base_dir - name: git checkout configuration repo into $app_base_dir
git: dest=$app_base_dir/configuration repo=git@github.com:edx/configuration.git git: dest=$app_base_dir/configuration repo=git@github.com:edx/configuration.git version=vik/ml-api
\ No newline at end of file - name: install requirements in python using pip
pip: requirements=$app_base_dir/configuration/ansible-requirements.txt
- name: uploads any needed secret config files
file: src=../../../../../edx-secret dest=/path/to/symlink owner=ubuntu group=edx state=file
\ No newline at end of file
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
- name: Create log directory - name: Create log directory
sudo: True sudo: True
file: path=/mnt/logs state=directory file: path=/mnt/logs state=directory
- name: Fix EC2 packages in VPC
sudo: True
command: sed -i -e 's/us-west-2.ec2/us/' /etc/apt/sources.list
- name: Update apt cache - name: Update apt cache
sudo: True sudo: True
apt: update_cache=yes apt: update_cache=yes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment