commit 2fb838dd9afda70803305ef7eb176267324ab8d6 Author: richard Date: Sat Sep 5 20:25:49 2015 -0400 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e4733d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.class +*.pyc +*.pyo + +;Aptana Studio poject files +.project +.settings \ No newline at end of file diff --git a/roles/django/tasks/main.yml b/roles/django/tasks/main.yml new file mode 100644 index 0000000..f24a4f5 --- /dev/null +++ b/roles/django/tasks/main.yml @@ -0,0 +1,7 @@ +--- + # roles/django/tasks/main.yml + +- name: install packages + portage: state=present package={{ item }} + with_items: + - "dev-python/django" \ No newline at end of file diff --git a/roles/docker/tasks/install.yml b/roles/docker/tasks/install.yml new file mode 100644 index 0000000..b1ee45a --- /dev/null +++ b/roles/docker/tasks/install.yml @@ -0,0 +1,21 @@ +--- + # main tasks to install docker + + +- name: install packages + apt: state=present package={{ item }} + with_items: + - "wget" + +- name: run docker install script + command: "wget -qO- https://get.docker.com/ | sh" + args: + creates: /usr/bin/docker + +- name: create docker group + group: state=present name=docker gid=999 system=yes + +- name: add users to docker group + user: name={{ item }} groups=docker append=yes + with_items: + - richard diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml new file mode 100644 index 0000000..9a3cfd2 --- /dev/null +++ b/roles/docker/tasks/main.yml @@ -0,0 +1,4 @@ +--- + # main docker tasks + +- include: install.yml \ No newline at end of file diff --git a/site-django-test.yml b/site-django-test.yml new file mode 100644 index 0000000..9a7d34b --- /dev/null +++ b/site-django-test.yml @@ -0,0 +1,8 @@ +--- + # playbook to install django test on home.xai-corp.net + +- hosts: home + remote_user: ansible + + roles: + - django diff --git a/test-ping.yml b/test-ping.yml new file mode 100644 index 0000000..876c4d6 --- /dev/null +++ b/test-ping.yml @@ -0,0 +1,9 @@ +--- + # playbook to install django test on home.xai-corp.net + +- hosts: home + remote_user: root + + tasks: + - name: test connection + ping: diff --git a/xai-corp1.test.yml b/xai-corp1.test.yml new file mode 100644 index 0000000..e36b642 --- /dev/null +++ b/xai-corp1.test.yml @@ -0,0 +1,7 @@ +--- + #playbook to test items on localhost + +- hosts: localhost + + roles: + - docker \ No newline at end of file