Updated Yum roles with review comments.
This commit is contained in:
parent
a3bb4e17e7
commit
4823db1563
@ -4,3 +4,4 @@
|
||||
service:
|
||||
name: yum-cron
|
||||
state: restarted
|
||||
become: True
|
||||
|
@ -5,6 +5,7 @@
|
||||
name: yum-cron
|
||||
state: present
|
||||
when: yum_cron_enabled
|
||||
become: True
|
||||
|
||||
- name: Replace | Enable update applying for yum-cron (CentOS)
|
||||
replace:
|
||||
@ -14,15 +15,17 @@
|
||||
when: yum_cron_enabled
|
||||
notify:
|
||||
- Restart yum-cron
|
||||
become: True
|
||||
|
||||
- name: Replace | Enable update applying for yum-cron (CentOS)
|
||||
replace:
|
||||
dest: /etc/yum/yum-cron.conf
|
||||
regexp: "^update_cmd = default"
|
||||
regexp: "^update_cmd = .*$"
|
||||
replace: "update_cmd = {{ yum_cron_update_cmd }}"
|
||||
when: yum_cron_enabled
|
||||
notify:
|
||||
- Restart yum-cron
|
||||
become: True
|
||||
|
||||
- name: Service | Enable yum-cron (CentOS)
|
||||
service:
|
||||
@ -30,3 +33,4 @@
|
||||
state: started
|
||||
enabled: yes
|
||||
when: yum_cron_enabled
|
||||
become: True
|
||||
|
@ -1,4 +1,6 @@
|
||||
---
|
||||
|
||||
- include: redhat.yml
|
||||
when: (ansible_os_family == "RedHat" and use_local_mirror == true)
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- yum_use_local_mirror
|
||||
|
@ -5,6 +5,7 @@
|
||||
dest: /etc/yum/pluginconf.d/fastestmirror.conf
|
||||
regexp: "enabled=1"
|
||||
replace: "enabled=0"
|
||||
become: True
|
||||
|
||||
- name: Template | Copy CentOS repo templates (CentOS)
|
||||
template:
|
||||
@ -13,16 +14,18 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0664
|
||||
become: True
|
||||
|
||||
- name: Yum | Update cache (CentOS)
|
||||
yum:
|
||||
update_cache: yes
|
||||
become: True
|
||||
|
||||
- name: Yum | Install epel-release (CentOS)
|
||||
yum:
|
||||
name: epel-release
|
||||
state: installed
|
||||
when: ansible_os_family == 'RedHat'
|
||||
become: True
|
||||
|
||||
- name: Template | Copy EPEL repo templates (CentOS)
|
||||
template:
|
||||
@ -31,8 +34,9 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0664
|
||||
become: True
|
||||
|
||||
- name: Yum | Update cache (CentOS)
|
||||
yum:
|
||||
update_cache: yes
|
||||
when: ansible_os_family == 'RedHat'
|
||||
become: True
|
||||
|
@ -17,6 +17,7 @@ Features
|
||||
* Adds support for configuration of custom fluentd filters, and additional
|
||||
config file templates for heat, ironic, keystone, magnum, murano, sahara, and
|
||||
swift in ``$KAYOBE_CONFIG_PATH/kolla/config/<component>/``.
|
||||
* Adds support for specifing a local Yum mirror for package installation.
|
||||
|
||||
Upgrade Notes
|
||||
-------------
|
||||
|
@ -1,4 +1,6 @@
|
||||
---
|
||||
|
||||
# Whether to enable Yum automatic updates.
|
||||
#yum_cron_enabled: false
|
||||
# Command to use for Yum automatic updates.
|
||||
#yum_cron_update_cmd: 'security'
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
# Whether or not to use a local Yum mirror.
|
||||
#yum_use_local_mirror: false
|
||||
# Whether or not yum-cron is enabled.
|
||||
#yum_cron_enabled: false
|
||||
# Mirror FQDN for Yum repos.
|
||||
#yum_centos_mirror_host: 'mirror.centos.org'
|
||||
# Mirror directory for Yum CentOS repos.
|
||||
|
@ -555,11 +555,11 @@ class OvercloudHostConfigure(KollaAnsibleMixin, KayobeAnsibleMixin, VaultMixin,
|
||||
* Configure a user account for use by kayobe for SSH access.
|
||||
* Optionally, wipe unmounted disk partitions (--wipe-disks).
|
||||
* Configure user accounts, group associations, and authorised SSH keys.
|
||||
* Configure YUM repos.
|
||||
* Disable SELinux.
|
||||
* Configure the host's network interfaces.
|
||||
* Set sysctl parameters.
|
||||
* Disable bootstrap interface configuration.
|
||||
* Configure YUM repos.
|
||||
* Configure NTP.
|
||||
* Configure LVM volumes.
|
||||
* Configure a user account for kolla-ansible.
|
||||
|
Loading…
Reference in New Issue
Block a user