Hi,
- hosts: dev_tomcat
vars:
http_port: 8080
sudo: true
sudo_user: build
tasks:
- name: copy_shut
copy: src=/etc/ansible/playbooks/scripts/shutdown_all.sh dest=/tmp
- name: change_permission_shut
file: path=/tmp/shutdown_all.sh mode=777
- name: copy_start
copy: src=/etc/ansible/playbooks/scripts/startup_all.sh dest=/tmp
- name: change_permission_start
file: path=/tmp/startup_all.sh mode=777
- name: stopping tomcat
shell: /tmp/./shutdown_all.sh
- name: starting tomcat
#command: sudo -u build /etc/init.d/tomcat start
shell: /tmp/./startup_all.sh
startup_all.sh => /etc/init.d/tomcat start
~
Shutdown was happen properly, but it did not start tomcat, please advise
how to resolve this.
Thanks,
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d2332c81-3777-4445-9e3a-21dd73cece8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.