diff --git a/README.md b/README.md index 57f7fa65..cc3ff42d 100644 --- a/README.md +++ b/README.md @@ -13,19 +13,22 @@ To do so, execute the following steps: Installation: http://docs.ansible.com/intro_installation.html Upgrading: `sudo pip install ansible==2.2.1.0` or http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-pip -2. Get the latest devops-scripts (the recipes that we use to deploy various projects) +2. Install JMESPath: +`pip install jmespath-terminal` + +3. Get the latest devops-scripts (the recipes that we use to deploy various projects) https://github.com/CodeNow/devops-scripts -3. Change to the devops scripts repo directory and run the following command: +4. Change to the devops scripts repo directory and run the following command: `ln -s //ssh/config ~/.ssh/config` -4. Obtain the "Ansible Secrets" zip for the environment you want to deploy (or create the new environment following [./environments/README.md](./environments/README.md)) +5. Obtain the "Ansible Secrets" zip for the environment you want to deploy (or create the new environment following [./environments/README.md](./environments/README.md)) -5. Unzip file obtained above into `devops-scripts/environments/${YOUR_ENV}/secrets` +6. Unzip file obtained above into `devops-scripts/environments/${YOUR_ENV}/secrets` -6. Copy the `*.pem` files from `devops-scripts/ansible/secrets` to your `~/.ssh` directory +7. Copy the `*.pem` files from `devops-scripts/ansible/secrets` to your `~/.ssh` directory -7. Install two required tools onto your machine: +8. Install two required tools onto your machine: ```bash brew update && brew install vault daemon ``` @@ -71,7 +74,7 @@ of the docker image needed to run the service on our architecture. ##### Command ``` -ansible-playbook -i ./[inventory_dir] [service-playbook] -e @[main-var-file] -e git_branch=[branch-or-tag] -t deploy +ansible-playbook -i ../[inventory_dir] [service-playbook] -e @../environments/[gamma-or-delta]/main.yml -e git_branch=[branch-or-tag] -t deploy ``` ##### Arguments @@ -99,7 +102,7 @@ being tested in the production mirror. ##### Command ``` -ansible-playbook -i ./[inventory_dir] [service-playbook] -e @[main-var-file] -e git_branch=[branch-or-tag] -t deploy -e build_args=--no-cache +ansible-playbook -i ../[inventory_dir] [service-playbook] -e @../environments/[gamma-or-delta]/main.yml] -e git_branch=[branch-or-tag] -t deploy -e build_args=--no-cache ``` ##### Arguments