Use correct dnf.conf path for proxy
The dnf configuration lives at /etc/dnf/dnf.conf, not /etc/dnf.conf. Implements: blueprint centos-and-dnf Change-Id: Idb14355ec739795539f9589261c4db9536ac13b4
This commit is contained in:
parent
c4105464e6
commit
b7a0dedbf5
@ -73,7 +73,7 @@
|
|||||||
- name: Deploy dnf package manager proxy
|
- name: Deploy dnf package manager proxy
|
||||||
lineinfile:
|
lineinfile:
|
||||||
line: 'proxy={{ repo_pkg_cache_url }}'
|
line: 'proxy={{ repo_pkg_cache_url }}'
|
||||||
dest: "/etc/dnf.conf"
|
dest: "/etc/dnf/dnf.conf"
|
||||||
state: "{{ (proxy_check.status == 200) | ternary('present', 'absent') }}"
|
state: "{{ (proxy_check.status == 200) | ternary('present', 'absent') }}"
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_os_family == 'RedHat'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user