小编Rak*_*aim的帖子

禁用 Ansible 的 Powershell 编码

Ansible 通过对 Powershell 进行编码并将 blob 传送到远程计算机来将工作传送到 Windows 端点。当这项工作执行时,很难从安全角度弄清楚发生了什么。半高级安全工具有时会阻止Ansible 与其需要修复的主机之间的此活动。

Ansible 在针对 Windows 主机工作时是否有一个开关来禁用对其正在执行的操作的Powershell屏蔽?

windows security powershell encoding ansible

5
推荐指数
1
解决办法
1424
查看次数

使用 Ansible playbook 在 ubuntu 16.04 上获取更新错误

我编写了 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)

ansible docker ubuntu-16.04

2
推荐指数
1
解决办法
4981
查看次数