|
|
@ -3,6 +3,7 @@
|
|
|
|
- name: Common tools
|
|
|
|
- name: Common tools
|
|
|
|
hosts: vpn-host
|
|
|
|
hosts: vpn-host
|
|
|
|
remote_user: root
|
|
|
|
remote_user: root
|
|
|
|
|
|
|
|
gather_facts: false
|
|
|
|
vars_files:
|
|
|
|
vars_files:
|
|
|
|
- config.cfg
|
|
|
|
- config.cfg
|
|
|
|
|
|
|
|
|
|
|
@ -19,6 +20,9 @@
|
|
|
|
- name: Install Updates, Patches and Additional Security Software
|
|
|
|
- name: Install Updates, Patches and Additional Security Software
|
|
|
|
apt: upgrade=dist update_cache=yes
|
|
|
|
apt: upgrade=dist update_cache=yes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Gather Facts
|
|
|
|
|
|
|
|
setup:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check if reboot is required
|
|
|
|
- name: Check if reboot is required
|
|
|
|
shell: >
|
|
|
|
shell: >
|
|
|
|
if [[ $(readlink -f /vmlinuz) != /boot/vmlinuz-$(uname -r) ]]; then echo "required"; else echo "no"; fi
|
|
|
|
if [[ $(readlink -f /vmlinuz) != /boot/vmlinuz-$(uname -r) ]]; then echo "required"; else echo "no"; fi
|
|
|
|