惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
N
Netflix TechBlog - Medium
G
Google Developers Blog
L
LangChain Blog
腾讯CDC
大猫的无限游戏
大猫的无限游戏
U
Unit 42
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
The GitHub Blog
The GitHub Blog
博客园_首页
GbyAI
GbyAI

Ansible

一个 tui 的 ansible playbook 执行引擎,欢迎使用 分享自己写的一个 ansible role,用来部署 meilisearch 有人同时用 PVE 和 Ansible 吗,用 Ansible 来管理 PVE 上的应用还挺方便 关于《大教堂与集市中》2.12 节的疑问 有时候 bug 出现的目标环境是其他发行版本,用 vagrant 还是 docker 来虚拟环境比较好? yum install -y docker-ce-18.09.9-3.el7 还让我确认?怎么规避这个确认 ansible sudo su - 不支持 关于 AWX 执行 ansible 的原理不解的地方 ansible-playbook 的剧本和相关的二进制文件怎么存比较好? ansbile 怎么把连接的目标 HOST IP 通过变量传递过去 ansible 远程自动交互式命令的响应 jenkins 和 ansible 在不同服务器,想在 jenkins 配置远程 ansible 来调用对应 playbook 和 hosts 可以吗? ansible api 里面的 ad-hoc 和 playbook 怎么做异步 ansible 有没有关于 passphrase 的配置的 Python 如何将 txt 导入 excel? 刚刚在抢 S7 鸟巢的票,想到一个问题,之前大麦网说被 80W 并发量挤爆了 Ansible 节点边栏链接错误 ansible 中的 check 模式和 diff 模式到底神马意思? ansible su 切换用户问题? 请假 ansible 里 template 模板是否支持目录呢 玩 Ansible 虐到自己了! Ansible Container Ansible 使用 Dynamic inventory 的 Script 得到的所有主机信息有办法分类么? Ansible 初学问题 ansible 怎么关闭 ask sudo password? 发个福利给 Ansible 的同学们,本人亲测有效 ansible 不支持 windows 做控制端吗?我的 windows10 py3.4 用这个老是出错 ansible 有什么优点么? Ansible 官网的文档读起来好别扭 Ansible 节点这么冷清? 没有人用吗?
ansible 如何控制 windows 后台运行 nginx?
yuyuyu · 2017-05-06 · via Ansible

我使用下面的命令启动

ansible web -m win_shell -a 'start nginx chdir=C:\\nginx-1.13.0'

结果命令执行完返回后,windows 上没有 nginx 的进程,但 nginx 有生成 logs,感觉是刚启动完随着 ansible 的返回又被杀掉了 我看了 ansible 官方文档 http://docs.ansible.com/ansible/win_shell_module.html 下面有说“ WinRM will not return from a command execution until all child processes created have exited. Thus, it is not possible to use win_shell to spawn long-running child or background processes. Consider creating a Windows service for managing background processes.” 但我确实要启动 nginx 并且不希望用服务的方式,不然没办法 -s reload

也尝试过运行一个 cmd 然后里面写 start nginx,还有自己写一个小程序去运行 nginx,都不行,要么是没有 nginx 进程,要么是 nginx 启动成功但 ansible 一直挂起没有返回