From eb8f15cc84147e7ca3eb71d52b994d7e039ddc6f Mon Sep 17 00:00:00 2001 From: benmangold Date: Sat, 12 Sep 2020 17:29:49 -0400 Subject: [PATCH] move vars to defaults --- README.md | 9 +++------ defaults/main.yml | 43 ++++++++++++++++++++++++++++++++++++++++++- handlers/main.yml | 2 +- tests/test.yml | 2 +- vars/main.yml | 42 ------------------------------------------ 5 files changed, 47 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index 225dd44..6754bcd 100644 --- a/README.md +++ b/README.md @@ -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 -------------- diff --git a/defaults/main.yml b/defaults/main.yml index 2e10b92..f8a53b7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,43 @@ --- -# defaults file for dev-server-roles \ No newline at end of file + +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: git-user@gmail.com diff --git a/handlers/main.yml b/handlers/main.yml index eadf72f..9afbe8c 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,2 +1,2 @@ --- -# handlers file for dev-server-roles \ No newline at end of file +# handlers file for dev-server-role \ No newline at end of file diff --git a/tests/test.yml b/tests/test.yml index 5928760..5932bcb 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -2,4 +2,4 @@ - hosts: localhost remote_user: root roles: - - dev-server-roles \ No newline at end of file + - dev-server-role diff --git a/vars/main.yml b/vars/main.yml index 1dade62..ed97d53 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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: benmangold@gmail.com