This commit is contained in:
parent
e92ac357ac
commit
8c43ee5b1d
2 changed files with 24 additions and 9 deletions
|
|
@ -14,7 +14,7 @@ galaxy_info:
|
||||||
# - GPLv3
|
# - GPLv3
|
||||||
# - Apache
|
# - Apache
|
||||||
# - CC-BY
|
# - CC-BY
|
||||||
license: license (GPLv2, CC-BY, etc)
|
license: GPLv2
|
||||||
|
|
||||||
min_ansible_version: 2.9
|
min_ansible_version: 2.9
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,28 @@
|
||||||
# name: httpd
|
# name: httpd
|
||||||
|
|
||||||
- name: Instal update mirror script
|
- name: Instal update mirror script
|
||||||
copy: src="update_mirror.sh" dest="/usr/local/bin/update_mirror.sh" owner=root group=root mode=0755
|
copy:
|
||||||
|
src: "update_mirror.sh"
|
||||||
|
dest: "/usr/local/bin/update_mirror.sh"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: Make the directory zone
|
- name: Make the directory zone
|
||||||
file: path="/etc/yum-mirror.repo.d" state=directory owner=root group=root mode=0755
|
file:
|
||||||
|
path: "/etc/yum-mirror.repo.d"
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: Instal update mirror script
|
- name: Instal update mirror script
|
||||||
copy: src="yum-mirror.repo.d/{{ item }}" dest="/etc/yum-mirror.repo.d/{{ item }}" owner=root group=root mode=0644
|
copy:
|
||||||
|
src: "yum-mirror.repo.d/{{ item }}"
|
||||||
|
dest: "/etc/yum-mirror.repo.d/{{ item }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
with_items:
|
with_items:
|
||||||
- CentOS7-armv7hl.repo
|
- CentOS7-armv7hl.repo
|
||||||
- CentOS7-i686.repo
|
- CentOS7-i686.repo
|
||||||
|
|
@ -21,8 +36,8 @@
|
||||||
- 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: name="daily update_mirror"
|
cron:
|
||||||
special_time=daily
|
name: "daily update_mirror"
|
||||||
job="/usr/local/bin/update_mirror.sh"
|
special_time: daily
|
||||||
state=present
|
job: "/usr/local/bin/update_mirror.sh"
|
||||||
|
state: present
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue