palybook.yaml:
- hosts: localhost
environment:
http_proxy: http://proxy-server:3128/
https_proxy: http://proxy-server:3128/
connection: local
gather_facts: no
become: true
tasks:
- apt:
update_cache: yes
playbook を実行
$ ansible-playbook \
--inventory localhost, \
playbook.yaml
0 件のコメント:
コメントを投稿