Fedora 41 specific dnf5 support
Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
		
							
								
								
									
										28
									
								
								tasks/Fedora-40-default.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								tasks/Fedora-40-default.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | |||||||
|  | --- | ||||||
|  | # tasks file for ensure_ansible_prereq | ||||||
|  | - name: 'package discovery' | ||||||
|  |   when: | ||||||
|  |     - ansible_system == 'Linux' | ||||||
|  |     - packages is not defined | ||||||
|  |   ansible.builtin.package_facts: | ||||||
|  | - name: 'service discovery' | ||||||
|  |   when: | ||||||
|  |     - ansible_system == 'Linux' | ||||||
|  |     - services is not defined | ||||||
|  |   ansible.builtin.service_facts: | ||||||
|  | - name: 'ensure packages' | ||||||
|  |   when: | ||||||
|  |     - ansible_system == 'Linux' | ||||||
|  |     - ensure_ansible_prereq is defined | ||||||
|  |   ansible.builtin.package: | ||||||
|  |     name: '{{ item.name }}' | ||||||
|  |     state: '{{ item.state }}' | ||||||
|  |     use: 'dnf' | ||||||
|  |   loop: | ||||||
|  |     - 'python3-rpm' | ||||||
|  |     - 'python3-libdnf5' | ||||||
|  |   loop_control: | ||||||
|  |     label: '{{ item.name }} will be {{ item.state }}' | ||||||
|  |   notify: | ||||||
|  |     - 'ensure_ansible_prereq.package_facts' | ||||||
|  |     - 'ensure_ansible_prereq.service_facts' | ||||||
		Reference in New Issue
	
	Block a user