Restructure repository, removing old stuff
This commit is contained in:
20
_legacy/tasks/centos/bindings.yml
Normal file
20
_legacy/tasks/centos/bindings.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Install CentOS 8 python bindings
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "8"
|
||||
become: true
|
||||
dnf:
|
||||
state: latest
|
||||
name:
|
||||
- python3-libselinux
|
||||
- python3-policycoreutils
|
||||
- python3-firewall
|
||||
|
||||
- name: Install CentoOS 7 python bindings
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
|
||||
become: true
|
||||
yum:
|
||||
state: latest
|
||||
name:
|
||||
- libselinux-python
|
||||
- policycoreutils-python
|
||||
- python-firewall
|
8
_legacy/tasks/centos/networkd.yml
Normal file
8
_legacy/tasks/centos/networkd.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Install systemd-networkd
|
||||
become: true
|
||||
yum:
|
||||
state: latest
|
||||
name:
|
||||
- systemd-resolved
|
||||
- systemd-networkd
|
9
_legacy/tasks/centos/packages.yml
Normal file
9
_legacy/tasks/centos/packages.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Install global packages using YUM
|
||||
become: true
|
||||
yum:
|
||||
state: latest
|
||||
name: "{{ item }}"
|
||||
with_items:
|
||||
- "{{ packages_global }}"
|
||||
- "{{ packages_yum }}"
|
31
_legacy/tasks/centos/repositories.yml
Normal file
31
_legacy/tasks/centos/repositories.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
- name: Enable Extra Packages for Enterprise Linux
|
||||
become: true
|
||||
dnf_repository:
|
||||
name: epel
|
||||
description: Extra Packages for Enterprise Linux
|
||||
baseurl: https://download.fedoraproject.org/pub/epel/$releasever/$basearch/
|
||||
|
||||
- name: Install Extra Packages for Enterprise Linux GPG key
|
||||
become: true
|
||||
rpm_key:
|
||||
state: present
|
||||
key: https://archive.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
||||
|
||||
- name: Disable yum subscription-manager
|
||||
become: true
|
||||
lineinfile:
|
||||
regex: enabled=1
|
||||
line: enabled=0
|
||||
path: /etc/yum/pluginconf.d/subscription-manager.conf
|
||||
create: yes
|
||||
state: present
|
||||
|
||||
- name: Disable yum repo report upload
|
||||
become: true
|
||||
lineinfile:
|
||||
regex: enabled=1
|
||||
line: enabled=0
|
||||
path: /etc/yum/pluginconf.d/enabled_repos_upload.conf
|
||||
create: yes
|
||||
state: present
|
Reference in New Issue
Block a user