Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (26 sloc) 703 Bytes
---
- hosts: all
vars:
http_port: 80
max_clients: 200
remote_user: root
tasks:
- name: subscribe to rht
command: /root/rhsm.sh
- name: ensure apache is at the latest version
yum: pkg=httpd state=latest
- name: write the apache config file
template: src=/srv/httpd.j2 dest=/etc/httpd/conf/httpd.conf
notify:
- restart apache
- name: ensure apache is running (and enable it at boot)
service: name=httpd state=started enabled=yes
handlers:
- name: restart apache
service: name=httpd state=restarted
- name: Run powershell script
hosts: windows
gather_facts: false
tasks:
- name: Run powershell script
script: files/helloworld.ps1