From f6de069ccf9c5cee958b1e99cbae05bb62756a41 Mon Sep 17 00:00:00 2001 From: David Federlein Date: Tue, 8 Oct 2013 16:31:10 -0500 Subject: [PATCH] Removed garbage. --- apache/README.md | 23 -------------------- apache/group_vars/all | 3 --- apache/group_vars/webservers | 3 --- apache/hosts | 2 -- apache/roles/apache/handlers/main.yml | 0 apache/roles/apache/tasks/deploy_site.yml | 9 -------- apache/roles/apache/tasks/install_apache.yml | 13 ----------- apache/roles/apache/tasks/main.yml | 3 --- apache/roles/apache/templates/index.html.j2 | 10 --------- apache/roles/common/handlers/main.yml | 3 --- apache/roles/common/tasks/main.yml | 2 -- apache/site.yml | 16 -------------- 12 files changed, 87 deletions(-) delete mode 100644 apache/README.md delete mode 100644 apache/group_vars/all delete mode 100644 apache/group_vars/webservers delete mode 100644 apache/hosts delete mode 100644 apache/roles/apache/handlers/main.yml delete mode 100644 apache/roles/apache/tasks/deploy_site.yml delete mode 100644 apache/roles/apache/tasks/install_apache.yml delete mode 100644 apache/roles/apache/tasks/main.yml delete mode 100644 apache/roles/apache/templates/index.html.j2 delete mode 100644 apache/roles/common/handlers/main.yml delete mode 100644 apache/roles/common/tasks/main.yml delete mode 100644 apache/site.yml diff --git a/apache/README.md b/apache/README.md deleted file mode 100644 index b929a98..0000000 --- a/apache/README.md +++ /dev/null @@ -1,23 +0,0 @@ -Building a simple Apache Server and deploying index.html using Ansible Playbooks. -------------------------------------------- - -These playbooks require Ansible 1.2. - -These playbooks are meant to be a reference and starter's guide to building -Ansible Playbooks. These playbooks were tested on CentOS 6.x so we recommend -that you use CentOS or RHEL to test these modules. - -The Apache server can be on a single node or multiple nodes. The inventory file -'hosts' defines the nodes in which the stacks should be configured. - - [webservers] - localhost - -Here the webserver would be configured on the local host. This can be deployed -using the following command: - - ansible-playbook -i hosts site.yml - -Once done, you can check the results by browsing to http://localhost/index.php. -You should see a simple test page and a list of databases retrieved from the -database server. diff --git a/apache/group_vars/all b/apache/group_vars/all deleted file mode 100644 index b4c54cc..0000000 --- a/apache/group_vars/all +++ /dev/null @@ -1,3 +0,0 @@ ---- -# Variables listed here are applicable to all host groups - diff --git a/apache/group_vars/webservers b/apache/group_vars/webservers deleted file mode 100644 index 1e3e433..0000000 --- a/apache/group_vars/webservers +++ /dev/null @@ -1,3 +0,0 @@ ---- -# The variables file used by the playbooks in the webservers group. -# These don't have to be explicitly imported by vars_files: they are autopopulated. diff --git a/apache/hosts b/apache/hosts deleted file mode 100644 index be8d78f..0000000 --- a/apache/hosts +++ /dev/null @@ -1,2 +0,0 @@ -[webservers] -web1 diff --git a/apache/roles/apache/handlers/main.yml b/apache/roles/apache/handlers/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/apache/roles/apache/tasks/deploy_site.yml b/apache/roles/apache/tasks/deploy_site.yml deleted file mode 100644 index 955109c..0000000 --- a/apache/roles/apache/tasks/deploy_site.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# These tasks are responsible for copying the latest dev/production code from -# the version control system. - -- name: Copy the code from repository - git: repo={{ repository }} dest=/var/www/html/ - -- name: Creates the index.html file - template: src=index.html.j2 dest=/var/www/html/index.html diff --git a/apache/roles/apache/tasks/install_apache.yml b/apache/roles/apache/tasks/install_apache.yml deleted file mode 100644 index be09217..0000000 --- a/apache/roles/apache/tasks/install_apache.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -# These tasks install apache. - -- name: install packages - yum: name=httpd state=present - when: ansible_os_family == "RedHat" - -- name: install packages - apt: name=apache2 state=present - when: ansible_os_family == "Debian" - -- name: http service state - service: name=httpd state=started enabled=yes diff --git a/apache/roles/apache/tasks/main.yml b/apache/roles/apache/tasks/main.yml deleted file mode 100644 index 1786709..0000000 --- a/apache/roles/apache/tasks/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -- include: install_apache.yml -- include: copy_code.yml diff --git a/apache/roles/apache/templates/index.html.j2 b/apache/roles/apache/templates/index.html.j2 deleted file mode 100644 index 9822a1c..0000000 --- a/apache/roles/apache/templates/index.html.j2 +++ /dev/null @@ -1,10 +0,0 @@ - - - Ansible Application - - -
- Homepage -
- - diff --git a/apache/roles/common/handlers/main.yml b/apache/roles/common/handlers/main.yml deleted file mode 100644 index e6989f3..0000000 --- a/apache/roles/common/handlers/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -# Handler to handle common notifications. Handlers are called by other plays. -# See http://ansible.cc/docs/playbooks.html for more information about handlers. diff --git a/apache/roles/common/tasks/main.yml b/apache/roles/common/tasks/main.yml deleted file mode 100644 index 889f705..0000000 --- a/apache/roles/common/tasks/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# This playbook contains common plays that will be run on all nodes. diff --git a/apache/site.yml b/apache/site.yml deleted file mode 100644 index 3e0f9ab..0000000 --- a/apache/site.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -# This playbook deploys, update and config apache. - -- name: common config - hosts: all - user: root - - roles: - - common - -- name: apache - hosts: webservers - user: root - - roles: - - apache