Skip to content

Instantly share code, notes, and snippets.

View Artemmkin's full-sized avatar
🐳

Artem Starostenko Artemmkin

🐳
View GitHub Profile
@Artemmkin
Artemmkin / playbook2.yml
Created February 1, 2018 12:28
playbook2.yml
---
- name: Configure Raddit App Instance
hosts: all
become: true
tasks:
- name: Install Ruby
apt: "name={{ item }} state=present"
with_items:
- ruby-full
@Artemmkin
Artemmkin / playbook1.yml
Created February 1, 2018 12:23
playbook1.yml
---
- name: Configure Raddit App Instance
hosts: all
become: true
tasks:
- name: Install Ruby
apt: "name={{ item }} state=present"
with_items:
- ruby-full
- build-essential
@Artemmkin
Artemmkin / script.sh
Created February 1, 2018 12:21
script
#!/bin/bash
sudo apt-get install ruby-full build-essential
@Artemmkin
Artemmkin / configuration.yml
Last active January 24, 2018 15:14
Configuration playbook example
---
- 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
@Artemmkin
Artemmkin / raddit.service
Created January 18, 2018 16:22
Raddit unit file
[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
@Artemmkin
Artemmkin / raddit.service
Created January 17, 2018 21:08
Unit file for Raddit app
[Unit]
Description=Raddit application
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/raddit
ExecStart=/bin/bash -lc 'puma'
Restart=always
@Artemmkin
Artemmkin / .gitignore
Last active March 26, 2023 11:21
terraform .gitignore
*.tfstate
*.tfstate.*.backup
*.tfstate.backup
*.tfvars
.terraform/