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
|
|
@ -27,7 +27,7 @@ galaxy_info:
|
||||||
# this branch. If Travis integration is configured, only notifications for this
|
# this branch. If Travis integration is configured, only notifications for this
|
||||||
# branch will be accepted. Otherwise, in all cases, the repo's default branch
|
# branch will be accepted. Otherwise, in all cases, the repo's default branch
|
||||||
# (usually master) will be used.
|
# (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.
|
# platforms is a list of platforms, and each platform has a name and a list of versions.
|
||||||
|
|
@ -47,10 +47,12 @@ galaxy_info:
|
||||||
version:
|
version:
|
||||||
- 7
|
- 7
|
||||||
- 8
|
- 8
|
||||||
|
- 9
|
||||||
- name: RedHat
|
- name: RedHat
|
||||||
version:
|
version:
|
||||||
- 7
|
- 7
|
||||||
- 8
|
- 8
|
||||||
|
- 9
|
||||||
|
|
||||||
galaxy_tags: []
|
galaxy_tags: []
|
||||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
# tasks file for roles/centos_mirror
|
# tasks file for roles/centos_mirror
|
||||||
|
|
||||||
#- include_role:
|
#- ansible.builtin.include_role:
|
||||||
# name: httpd
|
# name: httpd
|
||||||
|
|
||||||
- name: Instal update mirror script
|
- name: Instal update mirror script
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "update_mirror.sh"
|
src: "update_mirror.sh"
|
||||||
dest: "/usr/local/bin/update_mirror.sh"
|
dest: "/usr/local/bin/update_mirror.sh"
|
||||||
owner: root
|
owner: root
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Make the directory zone
|
- name: Make the directory zone
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "/etc/yum-mirror.repo.d"
|
path: "/etc/yum-mirror.repo.d"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Instal update mirror script
|
- name: Instal update mirror script
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "yum-mirror.repo.d/{{ item }}"
|
src: "yum-mirror.repo.d/{{ item }}"
|
||||||
dest: "/etc/yum-mirror.repo.d/{{ item }}"
|
dest: "/etc/yum-mirror.repo.d/{{ item }}"
|
||||||
owner: root
|
owner: root
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
- yum.conf
|
- yum.conf
|
||||||
|
|
||||||
- name: Ensure a cron job to run update_mirror.sh exists
|
- name: Ensure a cron job to run update_mirror.sh exists
|
||||||
cron:
|
ansible.builtin.cron:
|
||||||
name: "daily update_mirror"
|
name: "daily update_mirror"
|
||||||
special_time: daily
|
special_time: daily
|
||||||
job: "/usr/local/bin/update_mirror.sh"
|
job: "/usr/local/bin/update_mirror.sh"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue