some minor stylistic/typo fixes

pull/63/head
Tim Gerla 11 years ago
parent b1908ae1cf
commit 9e93ab5e7c
  1. 2
      lamp_simple/group_vars/all
  2. 3
      lamp_simple/group_vars/dbservers
  3. 2
      lamp_simple/playbooks/db.yml
  4. 3
      lamp_simple/roles/common/handlers/main.yml
  5. 5
      lamp_simple/roles/common/tasks/main.yml
  6. 3
      lamp_simple/roles/web/handlers/main.yml
  7. 1
      lamp_simple/roles/web/tasks/copy_code.yml
  8. 1
      lamp_simple/roles/web/tasks/install_httpd.yml
  9. 2
      lamp_simple/roles/web/templates/index.php.j2

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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"

@ -7,7 +7,7 @@
<a href=http://{{ ansible_eth0.ipv4.address }}/index.html>Homepage</a>
</br>
<?php
Print "Hello, World! I am configured in Ansible and i am : ";
Print "Hello, World! I am a web server configured using Ansible and I am : ";
echo exec('hostname');
Print "</BR>";
echo "List of Databases: </BR>";