Changes

Jump to: navigation, search

OPS445 Online Lab9

7 bytes removed, 07:57, 26 March 2022
m
Part 2: A playbook to install and start Apache Server
<pre>
---
- hosts: 192.168.99.153vmlab user: rootinstructor
vars:
apache_version: 2.6
motd_warning: '"WARNING: used by ICT faculty/students only.'\n"
testserver: yes
tasks:
Sample Run:
<pre>
[rchan@centos7 playbooks]$ ansible-playbook -i hosts -b httpd-play.yml
PLAY [192.168.99.153vmlab] ********************************************************************
TASK [Gathering Facts] **********************************************************ok: [192.168.99.153vmlab]
TASK [install apache] ***********************************************************changed: [192.168.99.153vmlab]
TASK [restart apache] ***********************************************************changed: [192.168.99.153vmlab]
PLAY RECAP **********************************************************************192.168.99.153 vmlab : ok=3 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
</pre>
572
edits

Navigation menu