add yum-update script
This commit is contained in:
parent
d9eba4c710
commit
e13b8c9a48
@ -151,7 +151,7 @@ printSuccess "Date and Time updated successfully"
|
||||
# get yum-check-update script
|
||||
#-----------------------------------------------------------------------------
|
||||
printInfo "Get yum-check-update script"
|
||||
git clone https://gitweb.dyndns.org/scripts/yum-check.git /tmp/
|
||||
git clone https://gitweb.dyndns.org/scripts/yum-check.git /tmp/yumupd
|
||||
if [ $? -ne 0 ]; then printError "Problem to clone yum-check-update script";exit; fi
|
||||
printSuccess "yum-check-update script cloned successfully"
|
||||
|
||||
|
||||
6
main.yml
6
main.yml
@ -16,10 +16,8 @@
|
||||
import_role:
|
||||
name: role-postfix
|
||||
|
||||
- name: import yum-check role
|
||||
import_role:
|
||||
name: role-yum-check
|
||||
|
||||
- include_tasks: yum-check-update.yml
|
||||
|
||||
- name: import netdata role
|
||||
import_role:
|
||||
name: role-netdata
|
||||
|
||||
18
yum-check-update.yml
Normal file
18
yum-check-update.yml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: get check-yum-update
|
||||
copy:
|
||||
src: /tmp/yumupd/check-yum-updates.sh
|
||||
dest: /usr/local/bin/check-yum-updates.sh
|
||||
mode: 0755
|
||||
|
||||
- name: create link crontab daily
|
||||
file:
|
||||
src: /usr/local/bin/check-yum-updates.sh
|
||||
dest: /etc/cron.daily/check-yum-updates.sh
|
||||
state: link
|
||||
|
||||
- name: delete source
|
||||
file:
|
||||
path: /tmp/yumupd
|
||||
state: absent
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user