You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.5 KiB
53 lines
1.5 KiB
---
|
|
|
|
- name: This module only works on CentOS 6 x86
|
|
assert:
|
|
that:
|
|
- "ansible_userspace_bits == '32'"
|
|
- "ansible_os_family == 'RedHat'"
|
|
|
|
- name: Ensure the RNGD service is started ! Otherwise, the SiteMinder server will be very slow...
|
|
service: name=rngd state=started enabled=yes
|
|
tags: test
|
|
|
|
- name: Start the SiteMinder Policy Server
|
|
command: /bin/ksh -l -c "start-ps"
|
|
sudo_user: "{{ sm_user }}"
|
|
tags: start
|
|
|
|
- name: Start the SiteMinder WAMUI
|
|
command: /bin/ksh -l -c "nohup {{ sm_home }}/siteminder/adminui/bin/run.sh &"
|
|
sudo_user: "{{ sm_user }}"
|
|
tags: start
|
|
|
|
- name: Start Tomcat
|
|
shell: cd {{ tomcat_home }} && nohup ./bin/startup.sh &
|
|
sudo_user: "{{ tomcat_user }}"
|
|
tags: start
|
|
|
|
- name: Start Apache
|
|
shell: /bin/bash -l -c "{{ httpd_home }}/bin/apachectl start"
|
|
sudo_user: "{{ httpd_user }}"
|
|
tags: start
|
|
|
|
- name: Stop Apache
|
|
command: /bin/bash -l -c "{{ httpd_home }}/bin/apachectl stop"
|
|
sudo_user: "{{ httpd_user }}"
|
|
tags: stop
|
|
|
|
- name: Stop Tomcat
|
|
shell: cd {{ tomcat_home }} && nohup ./bin/shutdown.sh &
|
|
sudo_user: "{{ tomcat_user }}"
|
|
tags: stop
|
|
|
|
- name: Stop the SiteMinder WAMUI
|
|
command: /bin/ksh -l -c "nohup {{ sm_home }}/siteminder/adminui/bin/shutdown.sh &"
|
|
sudo_user: "{{ sm_user }}"
|
|
tags: stop
|
|
|
|
- name: Stop the SiteMinder Policy Server
|
|
command: /bin/ksh -l -c "stop-ps"
|
|
sudo_user: "{{ sm_user }}"
|
|
register: stop_ps
|
|
failed_when: "stop_ps.rc != 1"
|
|
tags: stop
|
|
|