Ansible-Puppet-Chef
[ansible] ubuntu 16에 no_proxy가 안먹는 이슈가
'김용환'
2019. 1. 9. 01:47
ubuntu 16에 no_proxy가 안먹는 이슈가 있을 수 있다.
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1575877
$ vi /etc/profile
setproxy() {
...
}
따라서 필요하다면 apt-get update와 install을 아래와 같이 설치해야 할 수도 있다.
- name: Update cache
shell: "source /etc/profile && setproxy sudo -E apt-get update"
args:
chdir: /kakao/source
executable: /bin/bash
- name: Install Nginx
shell: "source /etc/profile && setproxy sudo -E apt-get install nginx"
args:
chdir: /kakao/source
executable: /bin/bash