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