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,2 +1,2 @@
|
|||
---
|
||||
# defaults file for roles/centos_mirror
|
||||
# defaults file for roles/centos_mirror
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
---
|
||||
# handlers file for roles/centos_mirror
|
||||
# handlers file for roles/centos_mirror
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -62,4 +64,4 @@ galaxy_info:
|
|||
|
||||
dependencies: []
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
# if you add dependencies to this list.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
---
|
||||
# vars file for roles/centos_mirror
|
||||
# vars file for roles/centos_mirror
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue