initial commit
This commit is contained in:
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
*.class
|
||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
|
||||||
|
;Aptana Studio poject files
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
7
roles/django/tasks/main.yml
Normal file
7
roles/django/tasks/main.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
# roles/django/tasks/main.yml
|
||||||
|
|
||||||
|
- name: install packages
|
||||||
|
portage: state=present package={{ item }}
|
||||||
|
with_items:
|
||||||
|
- "dev-python/django"
|
||||||
21
roles/docker/tasks/install.yml
Normal file
21
roles/docker/tasks/install.yml
Normal file
@@ -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
|
||||||
4
roles/docker/tasks/main.yml
Normal file
4
roles/docker/tasks/main.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
# main docker tasks
|
||||||
|
|
||||||
|
- include: install.yml
|
||||||
8
site-django-test.yml
Normal file
8
site-django-test.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
# playbook to install django test on home.xai-corp.net
|
||||||
|
|
||||||
|
- hosts: home
|
||||||
|
remote_user: ansible
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- django
|
||||||
9
test-ping.yml
Normal file
9
test-ping.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
# playbook to install django test on home.xai-corp.net
|
||||||
|
|
||||||
|
- hosts: home
|
||||||
|
remote_user: root
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: test connection
|
||||||
|
ping:
|
||||||
7
xai-corp1.test.yml
Normal file
7
xai-corp1.test.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
#playbook to test items on localhost
|
||||||
|
|
||||||
|
- hosts: localhost
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- docker
|
||||||
Reference in New Issue
Block a user