Update ansible code
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
4385320959
commit
9a22eecedc
5 changed files with 20 additions and 18 deletions
|
|
@ -1,11 +1,11 @@
|
|||
---
|
||||
# tasks file for roles/centos_mirror
|
||||
|
||||
#- include_role:
|
||||
#- ansible.builtin.include_role:
|
||||
# name: httpd
|
||||
|
||||
- name: Instal update mirror script
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: "update_mirror.sh"
|
||||
dest: "/usr/local/bin/update_mirror.sh"
|
||||
owner: root
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
mode: 0755
|
||||
|
||||
- name: Make the directory zone
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "/etc/yum-mirror.repo.d"
|
||||
state: directory
|
||||
owner: root
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
mode: 0755
|
||||
|
||||
- name: Instal update mirror script
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: "yum-mirror.repo.d/{{ item }}"
|
||||
dest: "/etc/yum-mirror.repo.d/{{ item }}"
|
||||
owner: root
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
- yum.conf
|
||||
|
||||
- name: Ensure a cron job to run update_mirror.sh exists
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
name: "daily update_mirror"
|
||||
special_time: daily
|
||||
job: "/usr/local/bin/update_mirror.sh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue