Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes syntax error in sudoers file. Renames playbook to web-playbook … #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions infra/roles/common/handlers/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion infra/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
authorized_key: user=root key="{{ lookup('file', '~/.ssh/id_rsa.pub') }}"

- name: Set {{user}} as sudoer
lineinfile: dest=/etc/sudoers line="{{user}} ALL=(ALL) NOPASSWD ":" ALL"
lineinfile: dest=/etc/sudoers line="{{user}} ALL=(ALL) NOPASSWD:ALL"

- name: Remove ubuntu's user
user: name=ubuntu state=absent remove=yes
Expand Down
1 change: 0 additions & 1 deletion infra/roles/webserver/handlers/main.yml

This file was deleted.

1 change: 0 additions & 1 deletion infra/playbook.yml → infra/web-playbook.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
- hosts: webserver
remote_user: root
roles:
- common
- { role: kamaln7.swapfile, swapfile_size: 1GB, swapfile_swappiness: 10 }
Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Cucumber tests will require the local server to be running.
- Configure your server with Ansible:

```
$ ansible-playbook -i inventory-prod.ini playbook.yml
$ ansible-playbook -i inventory-prod.ini web-playbook.yml
```
This installs Ruby, Postgres, Nginx, and may take some time on the first run.
- Then go back & deploy skedge to it:
Expand All @@ -59,3 +59,4 @@ Cucumber tests will require the local server to be running.
$ cd ..
$ cap production deploy
```