|
@ -1,10 +1,10 @@ |
|
|
- name: update web servers |
|
|
|
|
|
|
|
|
- name: Initialize web servers |
|
|
become: yes |
|
|
become: yes |
|
|
hosts: webservers |
|
|
hosts: webservers |
|
|
tasks: |
|
|
tasks: |
|
|
- name: ensure nano is at the latest version |
|
|
|
|
|
|
|
|
- name: ensure apache is at the latest version |
|
|
apt: |
|
|
apt: |
|
|
update_cache: y |
|
|
update_cache: y |
|
|
dpkg_options: 'force-confnew,force-confdef' |
|
|
dpkg_options: 'force-confnew,force-confdef' |
|
|
name: nano |
|
|
|
|
|
|
|
|
name: httpd |
|
|
state: latest |
|
|
state: latest |