Skip to content

Commit

Permalink
move vars to defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
benmangold committed Sep 12, 2020
1 parent deb0f9b commit eb8f15c
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 51 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
Role Name
dev-server-role
=========

A brief description of the role goes here.
ephemeral ubuntu development environment configs

Requirements
------------

Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
postgresql, docker, nodejs 12, oh-my-zsh

Role Variables
--------------
Expand Down
43 changes: 42 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,43 @@
---
# defaults file for dev-server-roles

apt_packages:
- awscli
- build-essential
- git
- python3
- ssh
- ssh-client
- vim
- wget
- zsh

docker_packages:
- apt-transport-https
- aptitude
- ca-certificates
- curl
- software-properties-common
- python3-pip
- virtualenv
- python3-setuptools

postgres_packages:
- bash
- openssl
- libpq-dev
- libssl-dev
- libssl-doc
- postgresql
- postgresql-contrib
- python3-psycopg2

user: ubuntu

db_user: ubuntu
db_name: ubuntu
db_password: ubuntu

docker_user: ubuntu

git_username: git-user
git_email: [email protected]
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
# handlers file for dev-server-roles
# handlers file for dev-server-role
2 changes: 1 addition & 1 deletion tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
- hosts: localhost
remote_user: root
roles:
- dev-server-roles
- dev-server-role
42 changes: 0 additions & 42 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1 @@
---

apt_packages:
- awscli
- build-essential
- git
- python3
- ssh
- ssh-client
- vim
- wget
- zsh

docker_packages:
- apt-transport-https
- aptitude
- ca-certificates
- curl
- software-properties-common
- python3-pip
- virtualenv
- python3-setuptools

postgres_packages:
- bash
- openssl
- libpq-dev
- libssl-dev
- libssl-doc
- postgresql
- postgresql-contrib
- python3-psycopg2

user: ubuntu

db_user: ubuntu
db_name: ubuntu
db_password: ubuntu

docker_user: ubuntu

git_username: benmangold
git_email: [email protected]

0 comments on commit eb8f15c

Please sign in to comment.