diff --git a/lamp_haproxy/roles/common/tasks/main.yml b/lamp_haproxy/roles/common/tasks/main.yml index bf59de7..cbd46bd 100644 --- a/lamp_haproxy/roles/common/tasks/main.yml +++ b/lamp_haproxy/roles/common/tasks/main.yml @@ -33,7 +33,7 @@ notify: restart ntp - name: Start the ntp service - service: name=ntpd state=started enabled=true + service: name=ntpd state=started enabled=yes tags: ntp - name: insert iptables template diff --git a/lamp_haproxy/roles/db/tasks/main.yml b/lamp_haproxy/roles/db/tasks/main.yml index 8b0e050..92b36af 100644 --- a/lamp_haproxy/roles/db/tasks/main.yml +++ b/lamp_haproxy/roles/db/tasks/main.yml @@ -17,7 +17,7 @@ - restart mysql - name: Start Mysql Service - service: name=mysqld state=started enabled=true + service: name=mysqld state=started enabled=yes - name: Create Application Database mysql_db: name={{ dbname }} state=present diff --git a/lamp_haproxy/roles/haproxy/tasks/main.yml b/lamp_haproxy/roles/haproxy/tasks/main.yml index ef025f6..70f508d 100644 --- a/lamp_haproxy/roles/haproxy/tasks/main.yml +++ b/lamp_haproxy/roles/haproxy/tasks/main.yml @@ -10,3 +10,6 @@ - name: Configure the haproxy cnf file with hosts template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg notify: restart haproxy + +- name: Start the haproxy service + service: name=haproxy state=started enabled=yes diff --git a/lamp_simple/roles/common/tasks/main.yml b/lamp_simple/roles/common/tasks/main.yml index cb65f03..7acbc32 100644 --- a/lamp_simple/roles/common/tasks/main.yml +++ b/lamp_simple/roles/common/tasks/main.yml @@ -11,7 +11,7 @@ notify: restart ntp - name: Start the ntp service - service: name=ntpd state=started enabled=true + service: name=ntpd state=started enabled=yes tags: ntp - name: test to see if selinux is running diff --git a/lamp_simple/roles/db/tasks/main.yml b/lamp_simple/roles/db/tasks/main.yml index 6e3acea..28d8706 100644 --- a/lamp_simple/roles/db/tasks/main.yml +++ b/lamp_simple/roles/db/tasks/main.yml @@ -19,7 +19,7 @@ - restart mysql - name: Start Mysql Service - service: name=mysqld state=started enabled=true + service: name=mysqld state=started enabled=yes - name: insert iptables rule lineinfile: dest=/etc/sysconfig/iptables state=present regexp="{{ mysql_port }}" diff --git a/wordpress-nginx/roles/mysql/tasks/main.yml b/wordpress-nginx/roles/mysql/tasks/main.yml index 1542774..355290d 100644 --- a/wordpress-nginx/roles/mysql/tasks/main.yml +++ b/wordpress-nginx/roles/mysql/tasks/main.yml @@ -17,4 +17,4 @@ - restart mysql - name: Start Mysql Service - service: name=mysqld state=started enabled=true + service: name=mysqld state=started enabled=yes