解決ansible実行「discovered_interpreter_python」:「/usr/bin/python」
6940 ワード
これは、モジュールまたはサービスが存在しません.この列はnginxのユーザーが存在するため、作成に成功しません.
これはvsftpdではありません.私はnginxを交換して成功しました.
[root@ansible ~]# ansible all -m user -a 'name=nginx shell=/sbin/nologin system=yes home=/var/nginx groups=root,bin uid=80 comment="nginx server"' 10.0.0.49 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"msg": "usermod: user nginx is currently used by process 18199
",
"name": "nginx",
"rc": 8
}
10.0.0.48 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"msg": "usermod: user nginx is currently used by process 27810
",
"name": "nginx",
"rc": 8
}
10.0.0.44 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"msg": "usermod: user nginx is currently used by process 3193
",
"name": "nginx",
"rc": 8
}
これはvsftpdではありません.私はnginxを交換して成功しました.
[root@ansible ~]# ansible all -m service -a 'name=memcached state=started enabled= yes'
10.0.0.44 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"msg": "Could not find the requested service memcached: host"
}
10.0.0.48 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"msg": "Could not find the requested service memcached: host"
}
10.0.0.49 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"msg": "Could not find the requested service memcached: host"
}
[root@ansible ~]# ansible all -m yum -a 'name=nginx state=installed'