Resources attached to the Road To DevOps tutorial
https://blog.noobtoroot.xyz/road-to-devops/
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.
26 lines
492 B
26 lines
492 B
- hosts: ansible-1 |
|
tasks: |
|
- name: Install and launch httpd |
|
yum: |
|
name: httpd |
|
state: present |
|
update_cache: yes |
|
|
|
- name: Set https systemctl enable |
|
service: |
|
name: httpd |
|
state: started |
|
enabled: yes |
|
|
|
- name: Copy static web page |
|
copy: |
|
src: index.html |
|
dest: /var/www/html/index.html |
|
mode: 0444 |
|
|
|
- name: Configure firewalld |
|
firewalld: |
|
service: http |
|
permanent: yes |
|
state: enabled |
|
immediate: yes
|
|
|