diff --git a/lamp_simple/group_vars/all b/lamp_simple/group_vars/all index 1bfa7db..8b6ffdd 100644 --- a/lamp_simple/group_vars/all +++ b/lamp_simple/group_vars/all @@ -1,5 +1,5 @@ --- -# varialbles here would be applicable to all groups +# Variables listed here are applicable to all host groups httpd_port: 80 ntpserver: 192.168.1.2 diff --git a/lamp_simple/group_vars/dbservers b/lamp_simple/group_vars/dbservers index 3c48323..bb60d44 100644 --- a/lamp_simple/group_vars/dbservers +++ b/lamp_simple/group_vars/dbservers @@ -1,5 +1,6 @@ --- -# The variables file used by the playbooks in the dbservers group, these dont have to be imported by vars_files: these are autopopulated. +# The variables file used by the playbooks in the dbservers group. +# These don't have to be explicitly imported by vars_files: they are autopopulated. mysqlservice: mysqld mysql_port: 3306 diff --git a/lamp_simple/playbooks/db.yml b/lamp_simple/playbooks/db.yml index 2aaf4d0..05c54dc 100644 --- a/lamp_simple/playbooks/db.yml +++ b/lamp_simple/playbooks/db.yml @@ -1,5 +1,5 @@ --- -# This playbook deploys mysql and configures database on the db node/nodes +# This playbook deploys MySQL and configures database on the db node(s) - hosts: dbservers user: root diff --git a/lamp_simple/roles/common/handlers/main.yml b/lamp_simple/roles/common/handlers/main.yml index e6a655e..2235e75 100644 --- a/lamp_simple/roles/common/handlers/main.yml +++ b/lamp_simple/roles/common/handlers/main.yml @@ -1,5 +1,6 @@ --- -# Handler to handle common notifications +# Handler to handle common notifications. Handlers are called by other plays. +# See http://ansible.cc/docs/playbooks.html for more information about handlers. - name: restart ntp service: name=ntpd state=restarted diff --git a/lamp_simple/roles/common/tasks/main.yml b/lamp_simple/roles/common/tasks/main.yml index 3e1cfec..0d72561 100644 --- a/lamp_simple/roles/common/tasks/main.yml +++ b/lamp_simple/roles/common/tasks/main.yml @@ -1,5 +1,5 @@ --- -# This playbook contains common plays that would be run on all Nodes. +# This playbook contains common plays that will be run on all nodes. - name: Install ntp yum: name=ntp state=present @@ -13,6 +13,3 @@ - name: Start the ntp service service: name=ntpd state=started enabled=true tags: ntp - - - diff --git a/lamp_simple/roles/web/handlers/main.yml b/lamp_simple/roles/web/handlers/main.yml index f613a8f..79f13f9 100644 --- a/lamp_simple/roles/web/handlers/main.yml +++ b/lamp_simple/roles/web/handlers/main.yml @@ -1,5 +1,6 @@ --- -# Handler for the webtier +# Handler for the webtier: handlers are called by other plays. +# See http://ansible.cc/docs/playbooks.html for more information about handlers. - name: restart iptables service: name=iptables state=restarted diff --git a/lamp_simple/roles/web/tasks/copy_code.yml b/lamp_simple/roles/web/tasks/copy_code.yml index 2c6ee09..2c2d111 100644 --- a/lamp_simple/roles/web/tasks/copy_code.yml +++ b/lamp_simple/roles/web/tasks/copy_code.yml @@ -7,4 +7,3 @@ - name: Create's the index.php file template: src=../roles/web/templates/index.php.j2 dest=/var/www/html/index.php - diff --git a/lamp_simple/roles/web/tasks/install_httpd.yml b/lamp_simple/roles/web/tasks/install_httpd.yml index 19ea206..3fa703f 100644 --- a/lamp_simple/roles/web/tasks/install_httpd.yml +++ b/lamp_simple/roles/web/tasks/install_httpd.yml @@ -9,7 +9,6 @@ - php-mysql - libsemanage-python - libselinux-python - - name: insert iptables rule for httpd lineinfile: dest=/etc/sysconfig/iptables state=present regexp="$httpd_port" insertafter="^:OUTPUT " line="-A INPUT -p tcp --dport $httpd_port -j ACCEPT" diff --git a/lamp_simple/roles/web/templates/index.php.j2 b/lamp_simple/roles/web/templates/index.php.j2 index 76c3420..e2825c2 100644 --- a/lamp_simple/roles/web/templates/index.php.j2 +++ b/lamp_simple/roles/web/templates/index.php.j2 @@ -7,7 +7,7 @@ Homepage
"; echo "List of Databases:
";