Update ansible code
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Adrien Reslinger 2022-08-16 15:53:56 +02:00
parent 4385320959
commit 9a22eecedc
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
5 changed files with 20 additions and 18 deletions

View file

@ -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"