All my Ansible Playbooks
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.
 
 
 
 
 
 

47 lines
1.2 KiB

---
- name: This module only works on CentOS 6 x86
assert:
that:
- "ansible_userspace_bits == '32'"
- "ansible_os_family == 'RedHat'"
- name: Delete existing SSH Keys
file: path=/etc/ssh/{{ item }} state=absent
with_items:
- ssh_host_dsa_key
- ssh_host_dsa_key.pub
- ssh_host_key
- ssh_host_key.pub
- ssh_host_rsa_key
- ssh_host_rsa_key.pub
tags: prepare-to-export
- name: Stop the SiteMinder WAMUI
command: /bin/ksh -l -c "{{ sm_home }}/siteminder/adminui/bin/shutdown.sh"
sudo_user: "{{ sm_user }}"
ignore_errors: yes
tags:
- prepare-to-export
- wamui-cleanup
- name: Wait for the WAMUI to Stop (5 seconds)
local_action: command sleep 5
sudo: false
tags:
- prepare-to-export
- wamui-cleanup
- name: Make sure the WAMUI forgets his public hostname
command: rm -rf "{{ sm_home }}/siteminder/adminui/server/default/data/derby"
tags:
- prepare-to-export
- wamui-cleanup
- name: Stop the SSHD service
service: name=sshd state=stopped enabled=yes
tags: prepare-to-export
- name: Halt the Virtual Machine
command: /sbin/halt
tags: prepare-to-export