This file contains hidden or 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
*.tfstate | |
*.tfstate.*.backup | |
*.tfstate.backup | |
*.tfvars | |
.terraform/ |
This file contains hidden or 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
[Unit] | |
Description=Raddit application | |
After=network.target | |
[Service] | |
Type=simple | |
WorkingDirectory=/opt/raddit | |
ExecStart=/bin/bash -lc 'puma' | |
Restart=always |
This file contains hidden or 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
[Unit] | |
Description=Raddit application | |
After=network.target | |
[Service] | |
Type=simple | |
User=raddit-user | |
WorkingDirectory=/home/raddit-user/raddit | |
ExecStart=/bin/bash -lc 'puma' | |
Restart=always |
This file contains hidden or 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
--- | |
- name: Configure Raddit App Instance | |
hosts: all | |
gather_facts: false | |
become: true | |
pre_tasks: | |
- name: Install Python2 for Ansible to work | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) | |
changed_when: false |
This file contains hidden or 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
#!/bin/bash | |
sudo apt-get install ruby-full build-essential |
This file contains hidden or 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
--- | |
- name: Configure Raddit App Instance | |
hosts: all | |
become: true | |
tasks: | |
- name: Install Ruby | |
apt: "name={{ item }} state=present" | |
with_items: | |
- ruby-full | |
- build-essential |
This file contains hidden or 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
--- | |
- name: Configure Raddit App Instance | |
hosts: all | |
become: true | |
tasks: | |
- name: Install Ruby | |
apt: "name={{ item }} state=present" | |
with_items: | |
- ruby-full |