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

@ -27,7 +27,7 @@ galaxy_info:
# this branch. If Travis integration is configured, only notifications for this
# branch will be accepted. Otherwise, in all cases, the repo's default branch
# (usually master) will be used.
#github_branch:
# github_branch:
#
# platforms is a list of platforms, and each platform has a name and a list of versions.
@ -43,14 +43,16 @@ galaxy_info:
# - 1.0
# - 7
# - 99.99
- name: CentOS
version:
- 7
- 8
- name: RedHat
version:
- 7
- 8
- name: CentOS
version:
- 7
- 8
- 9
- name: RedHat
version:
- 7
- 8
- 9
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes

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"