More new stuff
This commit is contained in:
28
versionlock.yml
Normal file
28
versionlock.yml
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
- name: Version Lock
|
||||
hosts: temp
|
||||
become: false
|
||||
gather_facts: false
|
||||
|
||||
vars:
|
||||
lock_pkgs:
|
||||
- leapp-0.17.0-2.el7_9
|
||||
- leapp-upgrade-el7toel8-0.20.0-13.el7_9
|
||||
- leapp-upgrade-el7toel8-deps-0.20.0-13.el7_9
|
||||
- leapp-deps-0.17.0-2.el7_9
|
||||
- python2-leapp-0.17.0-2.el7_9
|
||||
|
||||
tasks:
|
||||
- name: Install yum-plugin-versionlock
|
||||
ansible.builtin.package:
|
||||
name: yum-plugin-versionlock
|
||||
state: present
|
||||
|
||||
- name: "Version lock: {{ item }}" # noqa: command-instead-of-module
|
||||
ansible.builtin.command: "yum versionlock {{ item }}"
|
||||
register: r_lock_pkgs
|
||||
loop: "{{ lock_pkgs }}"
|
||||
|
||||
- name: Debug r_lock_pkgs
|
||||
ansible.builtin.debug:
|
||||
var: r_lock_pkgs
|
Reference in New Issue
Block a user