diff --git a/README.md b/README.md index 7db80e4c..20195f23 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# README +# READMEE This README would normally document whatever steps are necessary to get the application up and running. @@ -16,6 +16,7 @@ Things you may want to cover: * Database initialization * How to run the test suite + $ bundle exec rspec spec/ * Services (job queues, cache servers, search engines, etc.) diff --git a/ansible/site.yml b/ansible/site.yml new file mode 100644 index 00000000..78afbeb0 --- /dev/null +++ b/ansible/site.yml @@ -0,0 +1,35 @@ +--- +- hosts: rails + remote_user: ubuntu + become: yes + tasks: + - name: Update all packages to the latest version + apt: + upgrade: dist + - name: Add deploy user + user: + name: ubuntu + shell: /bin/bash +# - name: Add SSH key to server for deploy user +# authorized_key: +# user: deploy +# key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJwoq7YlVfGFAYlwPSAV4tFINsExdlhfDN/wNOL2r8r4OKDwNRjUHH0DunaMgm+zGezmjnPXypNk7uu8Vpji2CPoLuvmu6Dvc3u0fmhbPxOmUCP7bPD65MhbAl/yjiEyP31HK0LBPOix29ihXXbVGHy5rGNpqDmYH0g+7gHoS5lbegp04p+HV+N/L2oXvPJcrQTpNb6+GTof93pCaCMh31GKIflUnFnzkYETlJBZ1Jtqpf68lWIbSad3Bvho3tjSa2ISRKEmUz9EpMM+9JSBxSkuxlXkqAE94Vy16dpOvg4azFkTcrMjZ6Oiq++j4ZKizpC+VuemuNAa3OIX7jzgal heidar@cloud" + - name: Install Ruby dependencies + apt: + name: "{{ item }}" + with_items: + - gcc + - autoconf + - bison + - build-essential + - libssl-dev + - libyaml-dev + - libreadline6-dev + - zlib1g-dev + - libncurses5-dev + - libffi-dev + - libgdbm3 + - libgdbm-dev + - sqlite3 + - libsqlite3-dev + - nodejs