First commit
This commit is contained in:
commit
b840da79b8
7 changed files with 75 additions and 0 deletions
17
tasks/RedHat.yml
Normal file
17
tasks/RedHat.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Enable AppStream RHSM repository
|
||||
community.general.rhsm_repository:
|
||||
name: "rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-appstream-rpms"
|
||||
when:
|
||||
- ansible_distribution == "RedHat"
|
||||
- ansible_distribution_major_version >= '8'
|
||||
#- name: Install Podman
|
||||
# ansible.builtin.package:
|
||||
# name:
|
||||
# - podman
|
||||
# - podman-docker
|
||||
|
||||
# state: present
|
||||
# update_cache: yes
|
||||
## when:
|
||||
## - (ansible_distribution == "OracleLinux") or (ansible_distribution == "CentOS")
|
||||
23
tasks/main.yml
Normal file
23
tasks/main.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
- name: Include vars for {{ ansible_os_family }}
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Include tasks for {{ ansible_os_family }}
|
||||
include_tasks: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Install Podman packages
|
||||
package:
|
||||
name: "{{ podman_packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
# when:
|
||||
# ansible_os_family != "RedHat"
|
||||
notify: Restart podman
|
||||
|
||||
- name: Enable podman
|
||||
service:
|
||||
name: "{{ podman_service }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
# sudo touch /etc/containers/nodocker
|
||||
Loading…
Add table
Add a link
Reference in a new issue