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 httpd_port: 80
ntpserver: 192.168.1.2 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 mysqlservice: mysqld
mysql_port: 3306 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 - hosts: dbservers
user: root 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 - name: restart ntp
service: name=ntpd state=restarted 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 - name: Install ntp
yum: name=ntp state=present yum: name=ntp state=present
@ -13,6 +13,3 @@
- name: Start the ntp service - name: Start the ntp service
service: name=ntpd state=started enabled=true service: name=ntpd state=started enabled=true
tags: ntp 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 - name: restart iptables
service: name=iptables state=restarted service: name=iptables state=restarted

@ -7,4 +7,3 @@
- name: Create's the index.php file - name: Create's the index.php file
template: src=../roles/web/templates/index.php.j2 dest=/var/www/html/index.php template: src=../roles/web/templates/index.php.j2 dest=/var/www/html/index.php

@ -9,7 +9,6 @@
- php-mysql - php-mysql
- libsemanage-python - libsemanage-python
- libselinux-python - libselinux-python
- name: insert iptables rule for httpd - 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" 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> <a href=http://{{ ansible_eth0.ipv4.address }}/index.html>Homepage</a>
</br> </br>
<?php <?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'); echo exec('hostname');
Print "</BR>"; Print "</BR>";
echo "List of Databases: </BR>"; echo "List of Databases: </BR>";