@ -6,7 +6,7 @@
- lineinfile:
path : /etc/tinyproxy/tinyproxy.conf
line : "BasicAuth testuser testpassword"
line : "BasicAuth 1 testuser 1 testpassword"
state : present
# systemd doesn't play nice with this in a container for some reason
@ -15,7 +15,7 @@
- lineinfile:
path : /etc/yum.conf
line : "proxy=http:// testuser:testpassword@127.0.0.1:8888"
line : "proxy=http:// 1 testuser:1 testpassword@127.0.0.1:8888"
state : present
- yum:
@ -35,7 +35,7 @@
- lineinfile:
path : /etc/yum.conf
line : "proxy=http:// testuser:testpassword@127.0.0.1:8888"
line : "proxy=http:// 1 testuser:1 testpassword@127.0.0.1:8888"
state : absent
- lineinfile:
@ -45,12 +45,12 @@
- lineinfile:
path : /etc/yum.conf
line : "proxy_username= testuser"
line : "proxy_username= 1 testuser"
state : present
- lineinfile:
path : /etc/yum.conf
line : "proxy_password= testpassword"
line : "proxy_password= 1 testpassword"
state : present
- yum:
@ -75,7 +75,7 @@
- lineinfile:
path : /etc/yum.conf
line : "proxy=http:// testuser:testpassword@127.0.0.1:8888"
line : "proxy=http:// 1 testuser:1 testpassword@127.0.0.1:8888"
state : absent
- lineinfile:
@ -85,12 +85,12 @@
- lineinfile:
path : /etc/yum.conf
line : "proxy_username= testuser"
line : "proxy_username= 1 testuser"
state : absent
- lineinfile:
path : /etc/yum.conf
line : "proxy_password= testpassword"
line : "proxy_password= 1 testpassword"
state : absent
when:
- (ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux'] and ansible_distribution_major_version|int == 7)