Ansible 通过对 Powershell 进行编码并将 blob 传送到远程计算机来将工作传送到 Windows 端点。当这项工作执行时,很难从安全角度弄清楚发生了什么。半高级安全工具有时会阻止Ansible 与其需要修复的主机之间的此活动。
Ansible 在针对 Windows 主机工作时是否有一个开关来禁用对其正在执行的操作的Powershell屏蔽?
我编写了 ansible playbook,用于在 Ubuntu 16.04 LTS 上安装 docker。运行 ansible playbook 时,出现 apt-get update 错误
我试过运行附加的剧本代码。
- hosts: docker
become: yes
become_user: root
tasks:
- name: apt-get update
shell: apt-get update -y
- name: Install packages to allow apt to use a repository overHTTPS
shell: sudo apt-get install -y \
apt-transport-https -y \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
- name: Add Docker’s official GPG key
shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- name: Use the following …Run Code Online (Sandbox Code Playgroud)