ansible用户问题
#Ansible
执行test.yaml
使用fox用户切成kuku用户执行时候会提示报错
---
- hosts: 192.168.1.23
remote_user: fox
gather_facts: yes
tasks:
- name: hello word
command: echo `whoami`
become_user: kuku
报错如下:
安装一个acl包可以解决
---
- hosts: 192.168.1.23
remote_user: fox
gather_facts: yes
tasks:
- name: Install acl
apt:
state: latest
update_cache: true
pkg:
- acl
- name: hello word
command: echo `whoami`
become_user: kuku